I have encountered an issue with my web page where I have 3 separate validation groups, but when I attempt to submit the form, I want all of the groups to validate simultaneously.
It appears that using causesValidation="true"
on the button does not trigger the validators within their respective validation groups. As a result, I have resorted to using a JavaScript function to manually validate all the groups.
For example:
function validateAll()
{
Page_ClientValidate('group1');
Page_ClientValidate('group2');
Page_ClientValidate('group3');
}
Although this method gets the job done, I have noticed that before introducing multiple groups, the validation process was much quicker compared to how it functions now.
Is there a specific action that needs to be taken for the button to automatically trigger validation for all groups upon clicking, without relying on this Javascript function?