title: How to disable validation in a HttpPost action in ASP.NET MVC 3?
body: <p>I have a Create-View like this ...</p>
  
  <pre><code>&lt;script src="@Url.Content("~/Scripts/jquery.validate.min.js")"
          type="text/javascript"&gt;&lt;/script&gt;
  &lt;script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")"
          type="text/javascript"&gt;&lt;/script&gt;
  
  @using (Html.BeginForm())
  {
      @Html.ValidationSummary(null, new { @class = "validation" })
      ...
      &lt;input class="cancel" type="submit" value="OK" /&gt;
      ...
      &lt;input name="submit" type="submit" value="Save" /&gt;
  }
  </code></pre>
  
  <p>... and a corresponding controller action:</p>
  
  <pre><code>[HttpPost]
  public ActionResult Create(string submit, MyViewModel myViewModel)
  {
      if (submit != null) // true, if "Save" button has been clicked
      {
          if (ModelState.IsValid)
          {
              // save model data
              return RedirectToAction("Index");
          }
      }
      else // if "OK" button has been clicked
      {
          // Disable somehow validation here so that
          // no validation errors are displayed in ValidationSummary
      }
  
      // prepare some data in myViewModel ...
  
      return View(myViewModel); // ... and display page again
  }
  </code></pre>
  
  <p>I have found that I can disable client-side validation by setting <code>class="cancel"</code> on the "OK" button. This works fine.</p>
  
  <p>However, server-side validation still happens. Is there a way to disable it in a controller action (see the else-block in the Create action above)?</p>
  
  <p>Thank you for help!</p>