I fill up a List<> with an object that has properties. I can bind to the DropDownList without any problem:
cbo.DataSource = possibleChoice;
cbo.DataValueField = "Value";
cbo.DataTextField = "Display";
cbo.DataBind();
But I can't find a way to get the Value. I know the DropDownList has SelectedValue but it return a String instead of my type of object...
MyObjectType myObj = (MyObjectType)this.cbo.SelectedValue;//Err! Return a String
How can I get the object from the DropDownList?