Link to home
Start Free TrialLog in
Avatar of Larry Brister
Larry BristerFlag for United States of America

asked on

Validation Summary

I have inherited a page with the following tag (that works fine)
<asp:ValidationSummary ID="ValSummary" runat="server" CssClass="Error" HeaderText="Please correct these errors and try to submit again" />

However...I need to add some date validation logic in the vb page for expiration date and birth date validations

How do I fire off the summary if the vbcode requirements are not met as well?

The textbox getting filled is txtBirthDate
It has a compare validator cpvBirthDate linked to it. (ControlToValidate="txtBirthDate")
That keeps the formating correct
Avatar of Nasir Razzaq
Nasir Razzaq
Flag of United Kingdom of Great Britain and Northern Ireland image

Avatar of Larry Brister

ASKER

Code Cruiser

So...should I set the Validator itself to fire with a different text label?

here's the issue.
The validator simply checks to see if it's in the right format.  08-01-2012

The vb code verifies it's a valid birth date.
NOT > now() and at least 18 years old.
ASKER CERTIFIED SOLUTION
Avatar of Nasir Razzaq
Nasir Razzaq
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
As always. Thanks