|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Getting values from dynamic TextBox'esI create TextBoxes dynamically and i want to get the values entered these
dynamic textboxes, but i get emty values. How can i get the values from these dynamically created textboxes? Hi,
you need to recreate them on postback and if you do that on Page_Load you can get them only after Page_Load because postback data for these controls is loaded after Page_Load (if you can reinstantiate before Page_Load, then you can get the values in Page_Load). THis applies of course if you recreate the instances and get values via them. Second option, without recreating control instances is reading these values straight from Request.Form collection. -- Show quoteHide quoteTeemu Keiski ASP.NET MVP, AspInsider Finland, EU "basulasz" <basul***@discussions.microsoft.com> wrote in message news:335EAA0F-2DA4-4228-9DAD-52843CF0314F@microsoft.com... >I create TextBoxes dynamically and i want to get the values entered these > dynamic textboxes, but i get emty values. How can i get the values from > these > dynamically created textboxes?
Customizing ASP.NEt Hyperlink Control
Need Click Event to Fire from TextBox custom validator and button events Urgent! GridView and templated controls binding---------Plz help Defining server-side Click event for Label web contol ? TemplateControl?? Creating a Tab in web form Textboxes with images Windows Explorer style custom control for web dataset values in a dropdownlist |
|||||||||||||||||||||||