i have two check boxes with male/female and i would like to add a required field validator for them so if none is checked then a custom error appears, i can already do this but with one control not two.
thanks
All I needed to do was instead of adding two separate CheckBox
s ,I needed to add a CheckBoxList
:
and then use a normal RequiredFieldValidator
on the CheckBoxList
: