Adding server controls to a page progamaticly

kjuzee

New Member
How can I generate server side form fields? I can create them<BR>in HTML, but then they are not server side. I need them te be server side so they can be validated and manipulated trough code-behind.<BR>THanx<BR>In the HTML put the attribute runat="server" and give it an id value. EG:<BR><BR><input type=text id=txtMyTextBox runat="server"><BR><BR>Then you can refer to the object using its id (txtMyTextBox).<BR><BR>You might want to check out the asp.net quick start tutorial on http://gotdotnet.com/
 
Back
Top