Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Default to blank in ASP.Net dropdown list
Message
From
21/07/2006 13:40:32
 
 
To
21/07/2006 13:35:54
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, United States
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
ASP.NET
Miscellaneous
Thread ID:
01138622
Message ID:
01138627
Views:
10
Hi Jerry,

An HTML (ASP.NET) dropdown list has to point to an existing entry. One of the methods to resolve this is to include an entry in the list such as "Select and item..." or a blank entry which is dispalyed on form startup and then test that a valid selection has been made by the user.

Bill

>I have a ASP.Net webform with a DropDownList control. I populate the list with a table in a dataset. When the control displays on the form, the first item in the dropdown is showing.
>
>How can I make the dropdown display with no item displaying in the list? I would rather have the user make a selection from the dropdown instead of the dropdown defaulting to the first item.
>
>Thanks,
>
>Jerry
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.
Previous
Reply
Map
View

Click here to load this message in the networking platform