Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET
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-Jan-13 6:47am

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Try Repeater or Gridview control, if you have same options in every dropdown.
  Permalink  
Comments
kunthavai at 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.
Sheikh Muhammad Haris at 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)



Advertise | Privacy | Mobile
Web01 | 2.8.140926.1 | Last Updated 1 Jan 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100