|
|
Just show us the code for creating the textbox.
cheers,
Abhijit
CodeProject MVP
Web Site:abhijitjana.net
When you ask a question, remember to click "Good Answer", If the Answer is helps you.
|
|
|
|
|
function addkeywordBox()
{
if (!document.getElementById || !document.createElement)
return false;
var keywordArea = document.getElementById ("keyword-area");
if (!keywordArea)
return;
var newLine = document.createElement ("br");
keywordArea.appendChild (newLine);
var newkeywordBox = document.createElement ("input");
// Set up the new input for file uploads
newkeywordBox.type = "text";
newkeywordBox.size = "60";
// The new box needs a name and an ID
if (!addFileUploadBox.lastAssignedId)
addFileUploadBox.lastAssignedId = 100;
newkeywordBox.setAttribute ("id", "dynamic" + addkeywordBox.lastAssignedId);
newkeywordBox.setAttribute ("name", "dynamic:" + addkeywordBox.lastAssignedId);
keywordArea.appendChild (newkeywordBox);
addkeywordBox.lastAssignedId++;
}
|
|
|
|
|
I am not sure but may be it helps you. When dynamically creating controls keep track of their client ids then when you need data entered in those controls upon post back search their parent control for those ids, cast object to text box and extract their value. This answer is specific to ASP.NET.
|
|
|
|
|
thanks for your solution Muhammad...but then i'll have to pass number of textboxes from javascript to C#
and then access htmltextbox from C#...its a good solution..but bit tiresome
|
|
|
|
|
As they are HTML controls and not server controls you won't be able to access them in the standard fashion but they <b>should</b> be available in the Request.Form collection.
|
|
|
|
|
Hi Friends,
I need to display an image along with text in asp dropdownlist.I code it like that.
<asp:DropDownList ID="DropDownList1" runat="server" Width="200px">
<asp:ListItem Text="<img src='Nature-2.jpg' alt=''/>Sreejith"></asp:ListItem>;
</asp:DropDownList>
But the image willnot display in the text it displays the text i given in the text itself.Please help me to display image along with dropdownlist text in the dropdownlist.
|
|
|
|
|
It won't workout because default drop down list control doesn't support that. The best solution I could think of is to built some custom server control that renders HTML in desired way. Grab and read some tutorial about how to create custom controls.
|
|
|
|
|
SreejithAchutan wrote: <asp:dropdownlist id="DropDownList1" runat="server" width="200px">
<asp:listitem text="<img src='Nature-2.jpg' alt=''/>Sreejith">;
No, this will not work. For this case you have to developed your own custom control.
cheers,
Abhijit
CodeProject MVP
Web Site:abhijitjana.net
When you ask a question, remember to click "Good Answer", If the Answer is helps you.
|
|
|
|
|
Thanks for your kind reply sir.Is there any way to show using a custom control to display image and text but will look like a dropdownlist.
|
|
|
|
|
Look my reply once.It'll help you
Cheers!!
Brij
|
|
|
|
|
|
|
Can any one tell me how to send messages from one client to another client in a chatting application by using sockets or ports
|
|
|
|
|
sam_isolos wrote: Can any one tell me how to send messages from one client to another client in a chatting application by using sockets or ports
So, You need an Windows Based Chat Application. Then why are you asking here. This is ASP.NET Forum.
Have a look
Chat Application in C#[^]
cheers,
Abhijit
CodeProject MVP
Web Site:abhijitjana.net
When you ask a question, remember to click "Good Answer", If the Answer is helps you.
|
|
|
|
|
No i need a web based chatting application
why r u thinking of windows application
|
|
|
|
|
sam_isolos wrote: why r u thinking of windows application
Because You have mention about Ports and Sockets which is related with Windows Application.
ASP.NET is nothing to with Ports and Sockets. You server will be centralized and all client will access the same server.
If you are really searching for ASP.NET Chatting Application, Then also I will revert back to Google only.
asp.net Chat Application[^]
cheers,
Abhijit
CodeProject MVP
Web Site:abhijitjana.net
When you ask a question, remember to click "Good Answer", If the Answer is helps you.
|
|
|
|
|
This sort of application would be similar to any live chat application. When googling try the open source keyword as well hopefully it will bring you some nice stuff.
|
|
|
|
|
i am new to asp.net
dats why i dnt now abut that
anyway thanks
|
|
|
|
|
Hi ,
I have a small requirement, which I am unable to complete.
I am having a gridview on the form, and the data is bined to the grid using ObjectDatasource that is inturn binding from a TableAdapter in the dataset.
I have all select,insert,update and delete commands specified.
When i click on update or insert or delete it is just working fine as it is intended to.
It is directly updating/inserting/deleting in the database.
My requirement now is it should not update directly in the database instead it should update the database on click of a "Save" button at the bottom of the page.
All the changes he had made till now in the grid should directly updated in the database at one shot.
I dont want to store in either in a variable or in a session. Because of the memory constraint.
Is there any efficient way. I have tried googling all around and one link I found which is similar is
http://social.msdn.microsoft.com/Forums/en-US/vbgeneral/thread/cac3ab15-9236-4e6a-9ec1-f3cd73c91641
The explanation is very clear but I need it with an example.
Thanks in advance.
|
|
|
|
|
The Guy is Talking about ado.net. If you use Wizards to do your Database work you will encounter problems like limitations. Now in your case you dont want to update the grid automatically as the user leaves the field but on a Button click when you will have your own custom code. As the guy explained in the msdn post you have read. it can be done. i have written an article before, but it was for a windows application and the aproach is the same check it out
Coding an N-Tier Application in C# Without Any Wizard: Part II[^]
Hope this Helps
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.somee.com
http://www.vuyiswamaseko.tiyaneProperties.co.za
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
Thank you, For ur reply.
The post was very nice, Once upon a time I also such BLL and Valueobject classes.
But as i started using Dataset, it seems to be it is providing me all the stuff.
Let me explain My requirement briefly.
I have a grdiview , I will update or delete or insert rows(using commandbuttons) in the gridview. But it should not be affected directly in database untill i click on save button(which is outside the grid).
Conditions to achieve this are:
1. Should not use variables or sessions
2. Must use object datasource and Dataset located in APP_CODE folder
I hope there must be easiest way. as part of this reasearch some where else I found xmlserialzation would help working on it. I will let you know once it is done.
|
|
|
|
|
I think this is simple
as you said all command objects have the values, meaning the insert, update, and delete. ok now what you can do remove the command statements from the Sqldatasource control and put them in a Button as you want outside the the Gridview and do your update this way
SqlDataSource1.Update()
or
SqlDataSource1.Delete();
Am not a fan of XML
This will help.
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.somee.com
http://www.vuyiswamaseko.tiyaneProperties.co.za
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
Hi Friends,
i want to integrate third party forum in our project. any one can suggest the same.
i also try to search in google.
Regards
Keyur Satyadev
|
|
|
|
|