The second control returns an Empty Gender object.
Because you didn't specify DatavalueField and DataTextField for it. The SelectedValue and SelectedText both can deal with string types only, so you can't return the whole object through the selectedvalue property.
anas
All-Star
73649 Points
7914 Posts
Moderator
Re: Model Binding to DropDownList
Apr 23, 2012 06:11 PM|LINK
Because you didn't specify DatavalueField and DataTextField for it. The SelectedValue and SelectedText both can deal with string types only, so you can't return the whole object through the selectedvalue property.