Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations dencom on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Web Page design question 1

Status
Not open for further replies.

mais123

Programmer
Dec 26, 2007
36
US
Hi, I have an aspx form for a company information. In that form user should be able to add multiple users. So user info section should have Add button where a new User section will appear when the button is clicked.
So I basically need to show a new section for User Info each time they click Add New User button.
How can I do this with aspx since all the controls have set ID's, and I need to create new ones on the fly

Thanks
 
You can create controls dynamically and add them to the page using the Controls.Add method on a parent control (i.e. a Panel). Here's a simple example:



-------------------------------------------------------

Mark,
[URL unfurl="true"]http://aspnetlibrary.com[/url]
[URL unfurl="true"]http://mdssolutions.co.uk[/url] - Delivering professional ASP.NET solutions
[URL unfurl="true"]http://weblogs.asp.net/marksmith[/url]
 
Thanks
I have a table on the page and I need to hide some rows in the table. I tried enclosing them within Panel but that does not seem to work. Can Panel contain asp.net and html elements like TR?


Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top