Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Data Validators
Message
Information générale
Forum:
ASP.NET
Catégorie:
ADO.NET
Titre:
Data Validators
Divers
Thread ID:
00710900
Message ID:
00710900
Vues:
50
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
Répondre
Fil
Voir

Click here to load this message in the networking platform