Author: FleaSharp | Posted on: 10/23/2008 11:17:36 AM | Views : 286

Hi Everyone,

I have a text box that allows a user to enter in a datevalue and I want to incorporate the CompareValidator control to ensure that the user enters in a valid date value into the textbox. I am triyng to use the CompareValidator, but when I test this page out; it doesn't prevent me from submitting a invalid format.  For example, instead of entering in a date, if I enter in "Hello World", it will still try and process this value and thus crash. This is all I have in the aspx page---is there something I am missing?

 1 <asp:textbox id="StartTime" Runat="server" CssClass="FixedWidthControlsOuterColumns"></asp:textbox>
2 ...

Go to the complete details ...