Radio buttons do not save state after post back

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
 
G

Goldenrate

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

Thanks so much!
David
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top