Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How set a validator from JScript code
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00866516
Message ID:
00866568
Vues:
16
Mario,

If you need to run jscript then you can use the CustomValidator control. You set the ClientValidationFunction to the name of the jscript method to run. You also set the Text property to the error message you want to be displayed. Inside the jscript method, set the IsValid property to true of false depending on if the ControlToValidate is valid or not. If you look for CustomValidator in the online help you will see an example of how to use this control.

>For several reason, i need put validation logic in the client that is scripted in JScript, and not can be generated from the server (must be hand-coded for each customers)
>
>I need a way to be consistent to the .NET validation in client, that its, put the red dot in the control that fail and the message.
>
>How do that from JScript?????
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform