DropDownList selected value

  • Thread starter Thread starter Alan T
  • Start date Start date
A

Alan T

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.
 
Alan said:
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.
 
Back
Top