asp:RadioButtonList doesn't set correct selected item on load

GigaCom

New Member
I have this code:\[code\]<asp:RadioButtonList ID="rblExpDate" runat="server" > <asp:ListItem Selected="True" Text="No expiration date"></asp:ListItem> <asp:ListItem Text="Expires on:"></asp:ListItem></asp:RadioButtonList>\[/code\]that I would like to be always, on page load, to mark the first option ("no expiration date").However, if the user marks the second option and reloads, the second option is selected, even though I do this on page load:\[code\]rblExpDate.Items[0].Selected = true;rblExpDate.SelectedIndex = 0;\[/code\]Appreciate your help!
 
Back
Top