Im using asp.net webforms. c#
I want to validate a form. In the codebehind im just doing a if(Page.isValid).
Once the form fields are valid i want to perform one more validation.
The reason I want this separate is because it actually costs money to perform this validation, so I only want to perform it once the other fields are all valid.
Can I programatically add a validation error to a Validation summary? after checking Page.isValid?
Not sure how to tackle this.
Any suggestions welcome.
You could place a
CustomValidatorwith noControlToValidateattribute onto the page and set itsIsValidproperty by hand after all the other validation is done. This should make it show up in the summary.