Apr 23, 2012 01:00 PM|tim_tegenbosch|LINK
I have added the following controls the the page:
<asp:DropDownList runat="server" ID="cmbGender" SelectMethod="SelectGenders" DataValueField="Id" DataTextField="Description" SelectedValue='<%# BindItem.Gender %>' />
<asp:DropDownList runat="server" ID="cmbGenderObject" SelectMethod="SelectGenders" SelectedValue='<%# BindItem.GenderObject %>' />
The first control effectively returns the ID of the selected Gender.
The second control returns an Empty Gender object.
This would however imply that i have to retrieve the Gender object again in code behind. Is there no way to get the second way to return the selected Gender object?