By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,584 Members | 1,767 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,584 IT Pros & Developers. It's quick & easy.

Limit Nbr of items in asp:DropDownList?

P: n/a
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!
Feb 22 '06 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.