title: Update and ASP.NET MVC model on button click
body: <p>I'm new to ASP.NET MVC. I'm trying to update model on button click with no success: every time I push the button an HttpGet controller method is invoked.</p>
  
  <p>Here is my markup</p>
  
  <pre><code>@model DataInterface.Model.Entry
  
  &lt;button onclick="location.href='@Url.Action("Survey")'"&gt;Finish survey&lt;/button&gt;
  </code></pre>
  
  <p>Here is Controller code</p>
  
  <pre><code>[HttpGet]
  public ActionResult Survey()
  {
      var entry = new Entry();
      return View(entry);
  }
  
  [HttpPost]
  public ActionResult Survey(Entry newEntry)
  {
         // save newEntry to database
  }
  </code></pre>
  
  <p>When I click button HttpGet method is invoked. Why?</p>
  
  <hr>
  
  <p>It is bad to be a rookie)
  Thanks to all!</p>