Home All Groups Group Topic Archive Search About

Getting values from dynamic TextBox'es

Author
14 Apr 2005 11:52 AM
basulasz
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?

Author
14 Apr 2005 4:37 PM
Teemu Keiski
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.

--
Teemu Keiski
ASP.NET MVP, AspInsider
Finland, EU


Show quoteHide quote
"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?