Get value from control
Hi all,
i have a aspx:text box, aspx:list box and an html button in my webform and when the user type something in the text box and click this value will be added to the list box, i have used javascript for this. now my problem is that, when i tried to take the items in the listbox in csharp code ( in submit button click), i dont get any value ( listbox.items.count shows zero). How can i get the values of this list box at server side code that i have populated at the client side? anyone please help me.
I am using .net 2.0
Thanks in Advance...
Regards,
Ali
shekhar pawarPosted Nov 28, 2006, 6:40 AM
Go to HTML tags of ur HTML control say textbox, and put
runat="server" id="nameOfThatControl"
then you can access it from c# side.