I'm new to ASP.NET, so please be gentle 
I have a DropDownList with a bound datasource. One field from this source is an ID, the other the name of the item.
As DataTextField I use the name, and as DataValueField I use the ID (because it is used to filter a gridview).
Then I added a label and want this label to display the currently selected item name.
Now how would I get the selected item (not the ID!) from the DropDownList? I happen to always get the DataValueField-value, no matter if I use .Text or .Value.
Do I need to do this on the client-side with JavaScript or is there a possibility to get this value out of the DropDownList with ASP.NET-code??
Thanks in advance,
Jens
I have a DropDownList with a bound datasource. One field from this source is an ID, the other the name of the item.
As DataTextField I use the name, and as DataValueField I use the ID (because it is used to filter a gridview).
Then I added a label and want this label to display the currently selected item name.
Now how would I get the selected item (not the ID!) from the DropDownList? I happen to always get the DataValueField-value, no matter if I use .Text or .Value.
Do I need to do this on the client-side with JavaScript or is there a possibility to get this value out of the DropDownList with ASP.NET-code??
Thanks in advance,
Jens