Dynamic controls in ASP.Net
ASP.NET
2
Posts
2
Posters
0
Views
1
Watching
-
Hi friends i m looking coding for dynmaic controls. how to acess the value from a dynamic text box . if we r creating some text boxes at run times then how will we retain thr value when page unload or postback . Thanks Jasjit
You may use
FindControl()
method to search for controls in a container control(Page, Panel, etc..) So, for example to search for aTextBox
control which is contained in aPanel
, you have to callpanel.FindControl("textBox1")
and make a cast fromControl
toTextBox
. Calin