Larry Brister
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="txtBir thDate")
That keeps the formating correct
<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="txtBir
That keeps the formating correct
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.
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
As always. Thanks
http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.validationsummary.aspx