function Subscribe() {
if (typeof (Page_ClientValidate) == 'function') {
Page_ClientValidate();
}
if (Page_IsValid) {
// do something
CheckUser();
}
}
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.
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?
Its as if Javascript is validating all fields irrespective of which group they are from/in
You can pass the validation group as an argument like