From: Alan T on 5 Jul 2010 01:15 I think this is a basic question: I got a dropdownlist bind with a datasource, how do I get the value of the selected item? eg. Displayed text: Andy (ID = 3) Apple (ID = 1) Candy (ID = 2) John (ID = 5) Mandy (ID = 4) If I select John, then I need to get the 5.
From: Mr. Arnold on 5 Jul 2010 01:31 Alan T wrote: > I think this is a basic question: > > I got a dropdownlist bind with a datasource, how do I get the value of the > selected item? > eg. > Displayed text: > > Andy (ID = 3) > Apple (ID = 1) > Candy (ID = 2) > John (ID = 5) > Mandy (ID = 4) > > > If I select John, then I need to get the 5. > > You use the dropdownlist selected_indexed_changed event and the dropdownlist.selected.value.
|
Pages: 1 Prev: Convert 'Today' as double Next: Tabcontrols and radiobuttons |