Author: man_25 | Posted on: 10/18/2008 8:01:42 PM | Views : 249

 I tried searching this in the form, but I can't find a question like this. I am creating a web form that posts back. I assign an ID to a textbox and try to read the value of the textbox on postback.

Here's the code for the textbox:
 
HtmlInputText t = new HtmlInputText();
HtmlButton b = new HtmlButton();
t.ID = "Name";
//phFormFields is a Placeholder.
phFormFields.Controls.Add(t);
phFormFields.Controls.Add(t);  Now on postback, how to I get the value from the textbox? The .NET run time assigns unique values to the textbox and the only way I could access is to get this value from the view cource of the generated page and the request it using: Request.Form[ Go to the complete details ...