Multiple Validator in a Web Form

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Dear All,

would you know how to create mutiple required field validator (Eg. 2 TextBoxes),
and when a submit button is clicked with fields are empty, the error messages for the 2 TextBoxes will be appeared in only ONE message box, and if it's only one is empty then only one error message appeared?

Thanks.
 
Use a ValidationSummary control. Set the FORECOLOR of your
RequiredFieldValidators to same color of your page background. This way, you
will only see the messages from the ValidationSummary controls

Telmo
 
Back
Top