Groups | Blog | Home
all groups > asp.net > august 2003 >

asp.net : Custom Validation


Jeremy
8/19/2003 10:53:31 PM
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,
Sudha
8/20/2003 12:08:27 PM
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






[quoted text, click to view]

AddThis Social Bookmark Button