I have 3 check boxes and I would like to write a statement in C# that will allow me to find out which of the boxes is checked. I tried using
if(check1.IsChecked.Value == 1){
}
But that didnt seem to work. How can I solve this? I would also like to be able to get the text belonging to the checked check box. Here is the HTML code for the check boxes.
<div>
<h3>Membership Type</h3>
<label>
<input type="checkbox" class="radio" value="1" name="check1" />Normal User</label>
<label>
<input type="checkbox" class="radio" value="1" name="check2" />Verified Reviewer</label>
<label>
<input type="checkbox" class="radio" value="1" name="check3" />Development Team</label>
</div>