I have three sets of radio button in 3 different groupID on my aspx page. If I have to do a validation so users have to select at least one from each group how do I achieve this.
Say this is what I'm doing:
private void ServerValidate(object source, ServerValidateEventArgs args)
if (rdbLeveltwo.Checked == false && rdbLevelthree.Checked == false
&& rdbLevel23.Checked == false && rdbLevelfour.Checked == false && rdbLevel34.Checked == false)
args.IsValid = false;
args.IsValid = true;
This will validate one group and I can give the error message specific to this group that's fine. However, how do I handle the next two group and most importantly error messages specific to those group as I have set this error message already specific to the group1.
Please someone advice me!
Thanks in advance!