RSS Forums RSS
Please support our ASP.NET advertiser: Lunarpages ASP Web Hosting
Views: 947 | Replies: 1
Reply
Join Date: Jul 2006
Posts: 3
Reputation: websyd is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
websyd websyd is offline Offline
Newbie Poster

Tutorial Creating Conrols dynamically

  #1  
Jul 27th, 2006
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
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Feb 2005
Location: Braintree, UK
Posts: 1,166
Reputation: hollystyles will become famous soon enough hollystyles will become famous soon enough 
Rep Power: 7
Solved Threads: 59
hollystyles's Avatar
hollystyles hollystyles is offline Offline
Veteran Poster

Re: Creating Conrols dynamically

  #2  
Jul 27th, 2006
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
Last edited by hollystyles : Jul 27th, 2006 at 9:31 am.
==========================================
Yadda yadda yadda...
Web junky, fevered monkey
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 1:44 am.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC