I am using jquery.validationEngin.js plugin for the form validation. I have asp.net web form containing more submit buttons. They all are checking validations while posting data. I managed to skip the valition for some of those button by setting propertyUseSubmitBehavior="false" as refereed this.

However there are some control which does not have such property. Ultimately i want to ask here how can i skip the validation of form for some cases.

有帮助吗?

解决方案

From the plugin documentation here I manage to the things right. You have to simply detach the validation plugin wherever you feel unwanted. I have made below function and call it before performing any action.

function ByPassValidations() {
    $("#formId").validationEngine('detach');
    return true;
}
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top