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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top