I want to set ASP.net custom validator error parameter text through client side javascript. How can access it via sender, args parameters in my function?
I want to set ASP.net custom validator error parameter text through client side javascript.
Share
All you need to do is define the callback method in the ClientValidationFunction property of the CustomValidator definition:
You can then define a client side validation script:
Update: The sender variable holds a reference to the custom validator control – because JavaScript is dynamically typed, we can just update its
errormessageproperty directly: