Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

dynamic adding control to page

Status
Not open for further replies.

yfatgo

Programmer
Mar 8, 2004
8
IL
Hello,

im trying to add textbox to an html page. the text box is added according to the records in the db so it should be dynamicly.
I added it by the <Input type = TextBox....> command but when i went through the request.form later it didn't appear.
also, when i added it by TextBox a i got a messagethat the "runat=server" is missing.

Does anyone know i can i add textbox to the page from the c# source code and than go over it's values ?

 
Make sure that you recreate the textboxes each time that you get a postback, not just the first time that the page is loaded.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top