Click here to Skip to main content
15,867,308 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am designing an online form using .net and c#, I would like to add a subsequent number of panels based on a DropDownList selection, each panel will contain two textboxes and another DropDownList which I can then style and obtain the information from. So if the user selects "5" for instance it will postback and create 5 new panels.

I have researched this to a great extent, all of the answers that I found however are either incomplete or over my head.

The form itself is fairly simple, Is there an easier way?
Posted

1 solution

Create javascript function to set visibility of panels and call that function at 'onChange' event of DropDownList.
 
Share this answer
 
Comments
JonC04 23-Feb-12 5:41am    
Thank you for your speedy response. Could you elaborate on your answer. I am not extremely familiar with js.
Career Web Helper 23-Feb-12 6:14am    
you can set style attribute to all panel & set their visibility to hidden,and then make them visible in javascript for u refer same ex.at
http://www.java2s.com/Code/JavaScriptReference/Event-Handlers-Reference/onChangeExample.htm and just google it :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900