![]() |
|
|
|
#1 |
|
Hello,
is there a way to get this webcontrol to behave more like its winform cousin? In a winform dropdown, you can set the SelectedIndex to -1 and no items will be showing in the drop list. This doesn't seem to work with the web control. This bring up the issue of the first item in the list being displayed after adding items to the drop down. However, you cause the SelectedIndexChanged event you'd have to select a different item and then come back to the first item to get the selectedindexchanged to fire for the first item in the list. Is there a way around these couple of issues? I'm very new to ASP.NET stuff. Thanks S SAL |
|
|
|
|
#2 |
|
Posts: n/a
|
Would adding a blank item at the top solve your problem?
Karl -- http://www.openmymind.net/ http://www.fuelindustries.com/ "SAL" <SAL_@NoNo.com> wrote in message news:%... > Hello, > is there a way to get this webcontrol to behave more like its winform > cousin? > In a winform dropdown, you can set the SelectedIndex to -1 and no items > will be showing in the drop list. This doesn't seem to work with the web > control. This bring up the issue of the first item in the list being > displayed after adding items to the drop down. However, you cause the > SelectedIndexChanged event you'd have to select a different item and then > come back to the first item to get the selectedindexchanged to fire for > the first item in the list. Is there a way around these couple of issues? > I'm very new to ASP.NET stuff. > > Thanks > S > Karl Seguin |
|
|
|
#3 |
|
Posts: n/a
|
Hmmm, that's awfully simple Karl. Let me see....
S "Karl Seguin" < > wrote in message news:%... > Would adding a blank item at the top solve your problem? > > Karl > > -- > http://www.openmymind.net/ > http://www.fuelindustries.com/ > > > "SAL" <SAL_@NoNo.com> wrote in message > news:%... >> Hello, >> is there a way to get this webcontrol to behave more like its winform >> cousin? >> In a winform dropdown, you can set the SelectedIndex to -1 and no items >> will be showing in the drop list. This doesn't seem to work with the web >> control. This bring up the issue of the first item in the list being >> displayed after adding items to the drop down. However, you cause the >> SelectedIndexChanged event you'd have to select a different item and then >> come back to the first item to get the selectedindexchanged to fire for >> the first item in the list. Is there a way around these couple of issues? >> I'm very new to ASP.NET stuff. >> >> Thanks >> S >> > SAL |
|
|
|
#4 |
|
Posts: n/a
|
I'd suggest to also set your 'value' to -1, especially if queries using the
items are based on a numeric value -- David Wier MVP/ASPInsider http://aspnet101.com http://aspexpress.com "SAL" <SAL_@NoNo.com> wrote in message news:... > Hmmm, that's awfully simple Karl. Let me see.... > > S > > "Karl Seguin" < > wrote in > message news:%... > > Would adding a blank item at the top solve your problem? > > > > Karl > > > > -- > > http://www.openmymind.net/ > > http://www.fuelindustries.com/ > > > > > > "SAL" <SAL_@NoNo.com> wrote in message > > news:%... > >> Hello, > >> is there a way to get this webcontrol to behave more like its winform > >> cousin? > >> In a winform dropdown, you can set the SelectedIndex to -1 and no items > >> will be showing in the drop list. This doesn't seem to work with the web > >> control. This bring up the issue of the first item in the list being > >> displayed after adding items to the drop down. However, you cause the > >> SelectedIndexChanged event you'd have to select a different item and then > >> come back to the first item to get the selectedindexchanged to fire for > >> the first item in the list. Is there a way around these couple of issues? > >> I'm very new to ASP.NET stuff. > >> > >> Thanks > >> S > >> > > > > David Wier |
|
![]() |
| Thread Tools | Search this Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Setting the default value as"3years" in the drop down list | bhaskarjava | Software | 0 | 09-22-2009 10:21 AM |
| Drop Down list Problem | bazooka | Software | 1 | 08-18-2009 08:35 AM |
| databound Drop Down List not changing on new selection | KROSS | General Help Related Topics | 0 | 01-21-2008 04:48 PM |
| Re: Doug's DVD List | Doug MacLean | DVD Video | 13 | 05-29-2007 05:49 AM |
| New Releases: Schindler's List, The Front, 10 Commandments: Updated complete downloadable R1 DVD DB & info lists | Doug MacLean | DVD Video | 2 | 12-13-2003 03:17 AM |