Hi,
I have a user entry field ( a textbox ) where the user will enter some integer value...lets say "X" ...and then click on a Button called "Create".
On Button_Click I have to create X number of TextBoxes - so this is to be generated dynamically.
My problem is that, the textboxes that are created like this are "vanishing" or are lost during postback. How do I retain these dynamically created controls across postbacks ??
Loading
Pankaj GuptaPosted Jan 19, 2010, 7:38 AM
You can add these controls on a panel control.
Lalit MPosted Jan 19, 2010, 2:44 AM
http://www.codeproject.com/KB/viewstate/retainingstate.aspx
http://support.microsoft.com/kb/317794
http://www.beansoftware.com/ASP.NET-Tutorials/ViewState-In-ASP.NET.aspx