Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DropdownList index

Status
Not open for further replies.

MDTekUser

Technical User
Dec 25, 2005
68
US
For some reason even if I set the selectedindex to -1 it will still show the first item in the dropdown.

How can I get the dropdown to show nothing at page load?

I'm binding to a datareader.
 
Don't worry, I figured it out.

Something like this.ddlEmployees.Items.Insert(0,"");
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top