Hello..
I have a class called "Answer" includes:
int ID;
String Text;
And I have a list of them like this:
List<Answer> myList;
in the web page, I have RadioButtonList that I want to bind data from the list above, so I've done:
AnswersButtonList.DataSource = myList;
AnswersButtonList.DataTextField = "Text";
AnswersButtonList.DataValueField = "ID";
AnswersButtonList.DataBind();
but the DataValueField didn't bind well! I feel I'm doing that in a wrong way, waiting your help :)