Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Default to blank in ASP.Net dropdown list
Message
De
21/07/2006 13:40:32
 
 
À
21/07/2006 13:35:54
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
ASP.NET
Divers
Thread ID:
01138622
Message ID:
01138627
Vues:
11
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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform