Wrox Programmer Forums
|
ASP.NET 1.1 As of 10/6/2005, this forum is locked as part of the reorganization described here: http://p2p.wrox.com/topic.asp?TOPIC_ID=35394. No posts have been deleted. Open ongoing discussions from the last week have been moved to either ASP.NET 1.0 and 1.1 Beginners http://p2p.wrox.com/asp-net-1-0-1-1-basics-60/ or ASP.NET 1.0 and 1.1 Professional. http://p2p.wrox.com/forum.asp?FORUM_ID=50. See my sticky post inside for more.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.1 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 19th, 2005, 03:44 PM
Authorized User
 
Join Date: Dec 2003
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Default dynamically generate controls

Hi,
I have to add unlimited controls to the web form on run time.I have button called 'Add more controls'. When I click this button the code should generate one control(textbox, or Dropdownlist) to the form.If I click this button again it should add one more control to the page etc.How I can achieve this functionality?

Thanks..

 
Old January 20th, 2005, 07:38 AM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 326
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to Santhi Send a message via MSN to Santhi
Default

OnClick event of the Button 'Add More Controls' ,add logic to generate control.If you have to add either textbox or dropdownlist then it is fine.You cant find out which controls(TextBox or DropDownList) to be added by click of single button.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Please help me about dynamically created controls vingo_mail ASP.NET 2.0 Basics 1 March 24th, 2008 12:54 PM
dynamically generate crystal report s_sanks Crystal Reports 0 March 3rd, 2008 07:19 AM
Adding Controls Dynamically andyj00 C# 0 March 19th, 2007 08:54 AM
Dynamically generate DropDownList spm74 ASP.NET 1.0 and 1.1 Basics 2 June 17th, 2004 01:20 PM
Dynamically created controls katsarosj ASP.NET 1.0 and 1.1 Basics 4 February 4th, 2004 09:13 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.