Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Data Validators
Message
General information
Forum:
ASP.NET
Category:
ADO.NET
Title:
Data Validators
Miscellaneous
Thread ID:
00710900
Message ID:
00710900
Views:
49
I'm trying to add a data validator to ensure the date entered is today or later. I am using the following:
<asp:CompareValidator id=c1 
ValueToCompare='<%# DateTime.Today.ToShortDateString() %>' 
ControlToValidate="estJobDate" Operator="GreaterThanEqual" Type="Date" Text="*" runat="server" />
But this validator fires as I instantiate the screen before the user has entered data - so obviously I'm missing something.

TIA,
Doug
Douglas Osborne
Don't spend your life just wishing - http://www.AllGiftRegistry.com
Reply
Map
View

Click here to load this message in the networking platform