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.comwww.prenia.comWeblog: blogs.prenia.com/cathi