Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Custom Validator
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
01057025
Message ID:
01057966
Vues:
24
>William;
>
>Could you use a CompareValidator? It is easy to set up and works well.
>
>Depending upon what Browser your audience consists of, you might consider HTML side code in vbScript or JavaScript.
>
>Here is an example in vbScript:
>
><  script language=vbScript  >
>sub txtTodaysDate_OnBlur()
>     if len(trim(frmCustomer.txtTodaysDate.Value))> 0 then
>          if Not IsDate(frmCustomer.txtTodaysDate.Value) then
>           alert ("Not a valid date") frmCustomer.txtTodaysDate.focus()
>          end if
>     end if
>end sub
>< /script >
>
>
>Tom

What is IsDate function? Is it Visual Basic native function? What is C equavalent?
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform