when I am doing validation with the .net validation controls. What if a control needs to be 'required' , and a valid email address? Do I need to add both a custom validator, and a required field validator?
Printable View
when I am doing validation with the .net validation controls. What if a control needs to be 'required' , and a valid email address? Do I need to add both a custom validator, and a required field validator?
To the best of my knowledge, yes.
If I have a date field which is both required and within a range I will always use a required field validator and a range validator.
Use a required field validator and a regular expression validator.