Radio buttons do not save state after post back

  • Thread starter Thread starter Goldenrate
  • Start date Start date
G

Goldenrate

Hi,

I placed a set of RadioButtonList control on a one of the steps of a Wizard.
Here is how I defined it:

<asp:WizardStep runat="server" Title="My Title" >
.........
<asp:RadioButtonList ID="rblIsSpouseReg" runat="server"
OnSelectedIndexChanged="rblIsSpouseReg_SelectedIndexChanged"
RepeatDirection="Horizontal" AutoPostBack="True" >
<asp:ListItem Text="No" Value="No"></asp:ListItem>
<asp:ListItem Text="Yes" Value="No"></asp:ListItem>
</asp:RadioButtonList>
.............
</asp:WizardStep>

As you see I haven't set any default value for 'Selected', yet if I select
'Yes' and initiate a postback in response, the radio button is automatically
being set to 'No'.

Any ideas?

Thanks,
David
 
Oh my god you are so right. How stupid of me. It actually solved the
problem.

Thanks so much!
David
 
Back
Top