C
cpnet
I've added a RadioButtonList (with 2 choices, neither selected by default),
and a RequiredFieldValidator to a WebForm. Basically, I want a red asterisk
to appear beside the RadioButtonList until the user selects on of the
choices. I'd like this validation to fire on the client side. I've set
RequiredFieldValidator.ControlToValidate to my RadioButtonList. I've set
RadioButtonList.CausesValidation to "true" on the RadioButtonList. Still,
when the page is first rendered, I don't see the validation control display
my red asterisk. I added a button that does nothing but cause the form to
postback. Causing a postback with this button still doesn't make the
RequiredFieldValidator.Text show up. I must be doing something wrong, but I
can't figure out what.
and a RequiredFieldValidator to a WebForm. Basically, I want a red asterisk
to appear beside the RadioButtonList until the user selects on of the
choices. I'd like this validation to fire on the client side. I've set
RequiredFieldValidator.ControlToValidate to my RadioButtonList. I've set
RadioButtonList.CausesValidation to "true" on the RadioButtonList. Still,
when the page is first rendered, I don't see the validation control display
my red asterisk. I added a button that does nothing but cause the form to
postback. Causing a postback with this button still doesn't make the
RequiredFieldValidator.Text show up. I must be doing something wrong, but I
can't figure out what.