开发者

Execute JavaScript function from RegularExpressionValidator

开发者 https://www.devze.com 2023-03-23 18:39 出处:网络
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 c

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号