Click here to Skip to main content
15,895,011 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear All,

I have webform with 4radio buttons as options & with 4panels. & view button

Initially all panels are in disable mode.

When i select 1st radion button 1st panel will be visible mode & if i select 2nd one then 2nd panel so on.

finally when i click view button i need to identify which option is selected so that i need to perform some operations.

In which event i need to write & how to do this?
Posted

you can register client side event for "checkedchanged" event

More[^]

more[^]

more[^]
 
Share this answer
 
v2
Comments
SIVA RAMAMOORTHY 18-Apr-12 6:41am    
how to identify in that event which radion button is selected
C#
if(RadioBtn1.Checked = true)
{
   panel1.visible = true; 
}
else if (RadioBtn2.Checked = true)
{
   panel2.visible = true; 
}
else if (RadioBtn3.Checked = true)
{
   panel3.visible = true; 
}
else if (RadioBtn4.Checked = true)
{
   panel4.visible = true; 
}
else
{
   panel1.visible = false; 
   panel2.visible = false;
   panel3.visible = false;
   panel4.visible = false;
}
 
Share this answer
 
v3
Hi,

Use javascript to visible or disable panel based on radio button.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900