Custom Validation

  • Thread starter Thread starter Jeremy
  • Start date Start date
J

Jeremy

I have a web form that has a couple of input fields and a
check box. One of the input fields is a required field,
so I put a required field validator to validate that
field.

The second input field I only want to be required IF the
user checks the checkbox. If the check box isn't checked
I don't want the field to be required.

Can somebody please help me figure out how I can
accomplish this?

Thanks,
Jeremy
 
You can do onething in the Checkbox CheckChanged event u check if its
checked then u create aand assign RequiredFieldValidator for this field or
else dont create and assign this validator to the field
HTH
 
Back
Top