Hi,
Use a Panel WebControl to group each set of controls , and depending of
which one is selected set the Panel.Visible property accordly.
This is a similar code but using a DropDownList instead:
in the aspx code:
<asp:DropDownLi st Runat=server ID="SelectSecti onDRP"
OnSelectedIndex Changed="Change Section" AutoPostBack=Tr ue></asp:DropDownLis t>
in the code behind:
protected void ChangeSection( object sender, System.EventArg s e)
{
if ( SelectSectionDR P.SelectedIndex == 0 )
{
CarsInvolvedPan elControls.Visi ble = PassengerPanel. Visible = false;
return;
}
if ( SelectSectionDR P.SelectedIndex == 1 )
CarsInvolvedPan elControls.Visi ble = true;
else
PassengerPanel. Visible = true;
}
//Note
CarsInvolvedPan elControls & PassengerPanel are two Panel.
Hope this help,
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"lltaylor" <ll**********@y ahoo.com> wrote in message
news:ac******** *************** ***@posting.goo gle.com...
Hello,
I am trying to create a form which when initially displayed only has 2
radio buttons. Then based on which radio button you select the
appropriate form appears below the radio buttons.
What is the best of way of achieving this?
Can I layer the form objects?
I am relatively new to C# so any help on this matter would be
gratefully recieved.
Regards
Lloyd