Click here to Skip to main content
16,016,580 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
hi
I want when check two check boxes SIMULTANEOUS then radio button.visible = true
what code must be writed in Protected Sub CheckBox1_CheckedChanged and Protected Sub CheckBox2_CheckedChanged
please help me!
Posted
Updated 18-Sep-15 8:46am
v2
Comments
rezaeti 18-Sep-15 14:56pm    
I solved by set auto post back true
is this correct? or may be create an erorr

1 solution

Rough code
protected void CheckBox1_CheckedChanged(object sender, EventArgs e)
{
   if (CheckBox2.Checked == true)
   { 
      RadioButton1.Value = true;
   }
}
protected void CheckBox2_CheckedChanged(object sender, EventArgs e)
{
   if (CheckBox1.Checked == true)
   { 
      RadioButton1.Value = true;
   }
}
 
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