Limit Nbr of items in asp:DropDownList?

G

Guest

How can I limit the number of items that show up in a dropdown list at one
time? I have a list of states, and because my dropdown list is near the
bottom of the page, it becomes a drop-up list. It would look a lot more
professional if it only had 20 items at a time, and dropped down normally. I
can't find a way to do this. Can anyone help?

Here's my dropdown list code:
<asp:DropDownList ID="ddState" Runat="Server"></asp:DropDownList>

and then it's data-bound in the code-behind.

Any help is appreciated! Thanks!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,997
Messages
2,570,241
Members
46,833
Latest member
BettyeMacf

Latest Threads

Top