title: Ajax ActionLink creating a GET instead of POST
body: <p>I'm trying to create an Ajax POST link which sends a Model.Id to a Controller:</p>
  
  <pre><code>@Ajax.ActionLink("Reply", "Reply", new { MessageId = m.Id },
          new AjaxOptions() {
              HttpMethod = "POST",
              UpdateTargetId = "send",
              InsertionMode = InsertionMode.Replace,
          })
  </code></pre>
  
  <p>This is generating the following HTML in the browser:</p>
  
  <pre><code>&lt;a data-ajax="true" data-ajax-method="POST" data-ajax-mode="replace" data-ajax-update="#send" href="/Messages/Reply?MessageId=12"&gt;Reply&lt;/a&gt;
  </code></pre>
  
  <p>To be complete, here's the code from the controller:</p>
  
  <pre><code>        [HttpPost]
      public ActionResult Reply(int MessageId) {
          var MV = new MessageViewModel {
              ToUser = db.Users.Find(MessageId).Name,
          };
  
          if (Request.IsAjaxRequest()) {
              return PartialView("_SendMessagePartial", MV);
          } else {
              return View("Index", GetCurrentMessages());
          }
      }
  </code></pre>
  
  <p>Yet it is still performing a GET request. I'm working with MVC4, and both <strong>jQuery v1.9.1</strong> and <strong>jquery.unobtrusive-ajax.js</strong> are loaded in the correct order. I don't get any Javascript errors either. I can't figure out what it is that I'm doing wrong. How can i get this POST request to work?</p>