Get Value From Dynamically Created TextBoxes......

R

RC

Hi,

I 've created a form with serveral Dynamically Created TextBoxes and a
static button. After press the button, those values of TextBoxes should be
posted back to server. How to get the value back from those boxes? Any
Sample Code Provided?

Thanks
RC
 
T

Teemu Keiski

If you recreate TextBox instances on postback in same order as on previous
request, values are restored automatically back to the TextBoxes (assuming
control re-creation happens at Page_Load at the latest). In other case you
need to dig them from Request.Form collection by using each TextBox's
UniqueID as the lookup key.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top