c# asp.net dropdownlist - how to have it so the first item is not visible

simple question!

I have a number of dropdownLists with auto post back set to true.

dropdownlist 2 is dependent on the selection from dropdownlist 1 etc.....

how can I get it so that when each dropdownlist is populated the first item is not visible as I cannot select that item.  I have to select the second item and then re-select the first item before the next dropdownlist is populated.

I would like maybe for the dropdownlist to prompt the user or just appear blank before a selection is made

any idea guys?

jim_bob_jimAsked:
Who is Participating?
 
mrichmonConnect With a Mentor Commented:
You have to add a blank option to the dropdown list.

dropdownlistID.Items.Insert(0, new ListItem("", ""));
0
 
jim_bob_jimAuthor Commented:
thanks
0
All Courses

From novice to tech pro — start learning today.