ValidationSummary - error message in reponse to exception

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

Guest

Is there a way to include in a ValidationSummary an error message that says that an exception was thrown or that an if/else test went to 'else' ?
 
The ValidationSummary only shows the errors from validators. It doesn't
appear unless at least one validator has its IsValid property set to false.

So create a custom validator whose server side evaluation function
determines these issues and sets ErrorMessage to the text that you want to
say. You can also set the IsValid and ErrorMessage properties manually after
the validation function runs, such as in response to catching an exception
or running if/else.

--- Peter Blum
www.PeterBlum.com
Email: (e-mail address removed)
Creator of "Professional Validation And More" at
http://www.peterblum.com/vam/home.aspx

mg said:
Is there a way to include in a ValidationSummary an error message that
says that an exception was thrown or that an if/else test went to 'else' ?
 
Back
Top