dropdownlist selectedindex=-1

Discussion in 'ASP .Net Web Controls' started by Joe Abou Jaoude, Dec 30, 2004.

  1. 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 ***
    Don't just participate in USENET...get rewarded for it!
    Joe Abou Jaoude, Dec 30, 2004
    #1
    1. Advertising

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

    "Joe Abou Jaoude" <> wrote in message
    news:...
    >
    >
    > 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 ***
    > Don't just participate in USENET...get rewarded for it!
    Ken Cox [Microsoft MVP], Dec 30, 2004
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Matthew
    Replies:
    1
    Views:
    1,461
    Matthew
    Nov 12, 2003
  2. Bryan Poteet
    Replies:
    0
    Views:
    385
    Bryan Poteet
    Dec 4, 2003
  3. jm
    Replies:
    1
    Views:
    423
    Craig Deelsnyder
    Feb 11, 2004
  4. keithb
    Replies:
    1
    Views:
    11,896
    shauns1
    Nov 1, 2006
  5. S_K
    Replies:
    5
    Views:
    745
    Eliyahu Goldin
    Nov 14, 2007
Loading...

Share This Page