N
Nathan Sokalski
I have a set of RadioButtons in my form. I want to make sure that the user
selects one of them, and therefore am initially having none of them
selected. However, I want an error message to be displayed if they attempt
to submit the form without selecting one of them the same way an error
message would be displayed by a RequiredFieldValidator or any of the other
validation controls. However, because the RadioButtons are separate
controls, I cannot use the CustomValidator because I cannot put more than
one control in the ControlToValidate property. Is there a way to use any of
the validation controls to achieve this? I would prefer to use a validation
control so that I can include the error in the ValidationSummary control.
Thanks.
selects one of them, and therefore am initially having none of them
selected. However, I want an error message to be displayed if they attempt
to submit the form without selecting one of them the same way an error
message would be displayed by a RequiredFieldValidator or any of the other
validation controls. However, because the RadioButtons are separate
controls, I cannot use the CustomValidator because I cannot put more than
one control in the ControlToValidate property. Is there a way to use any of
the validation controls to achieve this? I would prefer to use a validation
control so that I can include the error in the ValidationSummary control.
Thanks.