UserControl, Radiobutton, Wizard : Problem in keeping the state ofthe Radiobuttons

F

Florian Paulus

Hi group,

I am kind of lost here.

I have created a Usercontrol holding 2 grouped Radiobuttons.

In one particular Wizardstep (the last one) they are dynamically (by
code) added to the step : Step2.Controls.Add(c);

They display fine on the page, even with the preselected Radiobutton
selected. However if the user changes some buttons and clicks on finish,
and i check those button controls, all is still set as the default.

I used already inside the Usercontrol the setting
EnableViewState="true" for the radiobuttons and for the whole
usercontrol too, before its added to the step.

What am i missing?

This is basically what the usercontrol contains of :

<asp:RadioButton ID="allow" runat="server" EnableViewState="true">
</asp:RadioButton>
<asp:RadioButton ID="deny" runat="server" EnableViewState="true"/>


I tried even to keep them in a Session like
((ArrayList)Session[Membership.GetUser().ProviderUserKey +
"_checkBoxes"]).Add(c);

But if i retrieve those elements in the OnFinishButtonClick Wizard
event, they are as well all set to their initial presetted value, the
changes the user made are lost.

Thanks in advance

Florian
 

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

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,534
Members
45,008
Latest member
Rahul737

Latest Threads

Top