all groups > asp.net webcontrols > december 2004 >
You're in the

asp.net webcontrols

group:

dropdownlist selectedindex=-1



dropdownlist selectedindex=-1 Joe Abou Jaoude
12/30/2004 1:59:02 AM
asp.net webcontrols:

hi
I want to display a populated dropdownlist, put I don't want to select
any item at first. I don't want to put a text at first like "selecy an
item" or "-" or a blank item...

selectedindex=-1 doesn't work, apparently I can't do that in web
(although it works on windows app).

any suggestions ?
thx

*** Sent via Developersdex http://www.developersdex.com ***
Re: dropdownlist selectedindex=-1 Ken Cox [Microsoft MVP]
12/30/2004 8:44:09 AM
You'll have to break down and put in the blank item. You can always remove
it after the postback.

[quoted text, click to view]
AddThis Social Bookmark Button