Dynamic addition of control to the placeHolder

venky

Active member
Joined
Sep 12, 2005
Messages
27
Programming Experience
1-3
Hi

Here is my code in the page.ispostback

dim t as new TextBox
t.id="Td"&ViewState("ind")
t.text="TB"&ViewState("ind")
'PlaceHolder1.Controls.add(t)
i=Convert.int16(ViewState("ind"),Tostring())
PlaceHolder1.Controls.addat(i,t)
viewState("ind")+=1


With the above code each time i was button click i.e page.ispostback one new textbox add to the placeholder.

But here i am not get previous Textboxes on the placeholder when i was added new one, Only recent one is viewable.
 
Back
Top