Asp.net Validation With Validation Group Calling Page_clientvalidate Not Working As Expected
Hi I am calling the following javascript when user clicks complete button which is to call validation on all of the validation groups which i have 3. but what is happening is that
Solution 1:
Edit
Can't you just call Page_ClientValidate()
(without any arguments) to validate all controls on the page?
Solution 2:
I know this is an old post, The issue with using only Page_ClientValidate() is that, if you want to validate one group at a time, it won't work as it fires all the validation groups, you can do something like this,
function something(){
if(Page_ClientValidate('Save'))
{
//Your Code
}
elseif (Page_ClientValidate('Group2'))
{
//your code
}
else
{
//your code
}
};
Post a Comment for "Asp.net Validation With Validation Group Calling Page_clientvalidate Not Working As Expected"