Author: gangelo | Posted on: 8/5/2009 12:08:18 PM | Views : 508

For some reason, radioButtonList.SelectedIndexChanged does not recognize
an index change at first I thought it was
because I was always setting Selected=true on the default ListItem in
radioButtonList, however, I have the same
code working fine in another Page (only difference is that the
RadioButtonList is
created dynamically and it is part of a Web
User Control). Any ideas?


protected void Page_Load(object sender, EventArgs e) {
...
RadioButtonList radioButtonList = RadioButtonListOnPage;

radioButtonList.AutoPostBack = true;
radioButtonList.EnableViewState = true;
radioButtonList.RepeatDirection = RepeatDirection.Vertical;
radioButtonList.RepeatLayout = RepeatLayout.Table;

radioButtonList.DataSource = surveyListItemBuildCollection;
radioButtonList.D ...

Go to the complete details ...