Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > dropdownlist selectedindex=-1

Reply
Thread Tools

dropdownlist selectedindex=-1

 
 
Joe Abou Jaoude
Guest
Posts: n/a
 
      12-30-2004


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!
 
Reply With Quote
 
 
 
 
Ken Cox [Microsoft MVP]
Guest
Posts: n/a
 
      12-30-2004
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!


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
DropDownList inside GridView: How to set SelectedIndex for the DropDownList? keithb ASP .Net 1 11-01-2006 05:24 AM
GridView: Filter DropDownList for another DropDownList =?Utf-8?B?SnVhbmpv?= ASP .Net 0 12-29-2005 07:44 AM
GridView: Filtr DropDownList from another DropDownList =?Utf-8?B?SnVhbmpv?= ASP .Net 0 12-23-2005 01:31 PM
databinding a Dropdownlist to another dropdownlist tshad ASP .Net 8 10-19-2005 10:00 PM
Using a data-bind dropdownlist to populate another data-bind dropdownlist mr2_93 ASP .Net 1 10-02-2005 05:07 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57