0

I need to save data when a SAVE button is clicked but it needs to ignore validation on the client side and simply post all results. When the FINISH button is clicked, it needs to run through the complete validation for all the controls. How do you selectively disable clientside validation for asp.net mvc3?

1
  • What are you using for client side validation currently? Commented Jun 24, 2011 at 20:11

2 Answers 2

1

See my other post here assuming jquery validation ASP.NET MVC 3 jQuery client validation - disable for specific button (Ajax form)

If you aren't using jquery validation for MVC but MS MVC validation then I think the CSS class just needs to be 'cancel'

Sign up to request clarification or add additional context in comments.

1 Comment

If I remove the rules will this affect the button that needs to perform validation?
0

(input id="MyElement" type="submit" value="Save"/)
(script type="text/javascript")
document.getElementById("MyElement").disableValidation=true;

or
>script type="text/javascript">
$("#MyElement").disableValidation=true;
(/script)

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.