Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Validate a date
Message
De
15/07/2006 10:09:55
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
14/07/2006 15:34:12
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Titre:
Versions des environnements
Environment:
ASP.NET
Divers
Thread ID:
01136539
Message ID:
01136669
Vues:
9
>I have a ASP.Net webform that contains a textbox where a user should enter a date in mm/dd/yy format.
>
>How can I validate that the user enter a good date?
>
>Thanks,
>
>Jerry

Jerry,
Forcing the user enter a date in a specific format is not a good idea IMHO. You could try Parse to validate or use a CompareValidator for type checking.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform