Click here to Skip to main content
15,894,343 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have

XML
<asp:CompareValidator ID="CheckToDate" runat="server" ControlToValidate="ToDateTextBox"
ControlToCompare="FromDateTextBox" SetFocusOnError="true" Display="Dynamic" Operator="GreaterThan"CssClass="ErrorLabel" ErrorMessage="<%$ Resources:GlobalResources, EndDateNotValid %>"Type="Date">
</asp:CompareValidator>


when my
ToDateTextBox
is smaller than my
FromDateTextBox

it shows the err "End Date Not Valid"
I want to be able to check is the error is published or not in my C# code
because I want to enable/disable a button based on it

Thanks
Posted
Updated 9-Jun-15 6:07am
v2
Comments
Mathi Mani 9-Jun-15 15:44pm    
What do you mean by "Smaller than"?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900