Page_ClientValidate()问题 [英] Page_ClientValidate() Question
本文介绍了Page_ClientValidate()问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
function Subscribe() {
if (typeof (Page_ClientValidate) == 'function') {
Page_ClientValidate();
}
if (Page_IsValid) {
// do something
CheckUser();
}
}
脚本绑定到与常规的前pression验证一个asp.net按钮。我有我与指定了不同的验证组页面上另一种形式。
The script is tied to an asp.net button with regular expression validators. I have another form on my page with a different validation group specified.
当我点击这个按钮(所有条件满足)。它触发对其他的ValidationGroup错误。如何以及为什么会出现这种情况?是否有办法对付这个?
When I click on this button (with all conditions met). It fires an error on the other validationgroup. How and why is this happening? Is there a way to counter this?
它作为如果JavaScript无论他们是来自/在哪个组验证所有字段
Its as if Javascript is validating all fields irrespective of which group they are from/in
推荐答案
您可以通过验证组像
Page_ClientValidate("valMyValGroup");
这篇关于Page_ClientValidate()问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文