Click here to Skip to main content
15,891,375 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I need to create multiple dropdowns in the same page with same set of options. Say, i have to atleast create 10 dropdowns in a single page with options Good, bad, better, worse, excellent. What is the best way to approach it?
1. To create a custom dropdown control with the options predefined or
2. just use the normal asp.net dropdown control 10 times in the page.
Please help me.

Thanks in advance.
Posted

1 solution

Try Repeater or Gridview control, if you have same options in every dropdown.
 
Share this answer
 
Comments
kunthavai 1-Jan-13 13:15pm    
I can't use the repeater control as the page is mixed with several text boxes and different dropdown boxes other than the one i mentioned above. Except the 10 dropdown boxes, others are different.
[no name] 1-Jan-13 13:26pm    
Then it depends on the usage of that dropdown. If its count is fixed 10, then add Dropdown 10 times.

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