dropdownlist selectedindex=-1

J

Joe Abou Jaoude

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
 
K

Ken Cox [Microsoft MVP]

You'll have to break down and put in the blank item. You can always remove
it after the postback.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,825
Latest member
VernonQuy6

Latest Threads

Top