Execute JavaScript function from RegularExpressionValidator
I have a asp.net textbox that uses a RegularExpressionValidator. If the regula开发者_运维技巧r expression fails, is it possible to execute a small client side javascript function to do something?
Use customvalidator instead and then make it call a js function. In that function you can perform regular expression validation and what ever else you desire.
精彩评论