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

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top