hey all,
im having some trouble with the radio button list in ASP.net, for some reason it wont let me select the 2nd item in the radio button list ( index of 1) when i select this item the selected item goes back to 0 (the first item). when i debug the code to see what the selected item is, it shows 0 for some reason, even though i press the 2nd item ( the index should be 1)
can any one think of what i might be doing wrong here ??
on the web form side i have this
<asp:RadioButtonList ID="RadioButtonList1" runat="server" OnSelectedIndexChanged="RadioButtonList1_SelectedIndexChanged" AutoPostBack="true">
</asp:RadioButtonList>
then on the script side, the radio button list is populated by going through an array like so
for (i = 0; i < answersJArray[i].Length; i++)
{
RadioButtonList1.Items.Add(answersJArray[i].ToString());
}