Please support our ASP.NET advertiser: Lunarpages ASP Web Hosting
Views: 947 | Replies: 1
![]() |
•
•
Join Date: Jul 2006
Posts: 3
Reputation:
Rep Power: 0
Solved Threads: 0
I created a textbox dynamically like this
Sub Page_Load()
For i = 1 to 5
dim MyTextBox as new TextBox
panel1.controls.add(MyTextBox)
This creates 5 TextBoxes all at ones But say i want a button to create this textboxes one after the other untill i create the whole 5 textboxes how will i need to do the code
Thanks
Sub Page_Load()
For i = 1 to 5
dim MyTextBox as new TextBox
panel1.controls.add(MyTextBox)
This creates 5 TextBoxes all at ones But say i want a button to create this textboxes one after the other untill i create the whole 5 textboxes how will i need to do the code
Thanks
•
•
Join Date: Feb 2005
Location: Braintree, UK
Posts: 1,166
Reputation:
Rep Power: 7
Solved Threads: 59
Please search the forum first before posting you will see 99.9% of requests have been asked and answered before:
http://www.daniweb.com/techtalkforum...namic+controls
Particularly post 6 in the above thread link by tgreer, which offers an article on this very (not so simple) subject.
http://www.tgreer.com/aspnet_html_04.html
http://www.daniweb.com/techtalkforum...namic+controls
Particularly post 6 in the above thread link by tgreer, which offers an article on this very (not so simple) subject.
http://www.tgreer.com/aspnet_html_04.html
Last edited by hollystyles : Jul 27th, 2006 at 9:31 am.
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)






Linear Mode