title: Abort Previous Ajax requests using Ajax.BeginForm in C# MVC
body: <p>I have an Ajax Form in a C# MVC webapp.
  The users interactions on the page will automatically trigger some jQuery/javascript to submit the form.</p>
  
  <pre><code>$('#hiddenUpdateForm').submit();
  </code></pre>
  
  <p>The form I am submitting is in a codeblock:</p>
  
  <pre><code>using (Ajax.BeginForm("Update", "Controller", new AjaxOptions { HttpMethod = "POST", OnSuccess = "updatefunction(data)", }, new { id = "hiddenUpdateForm" }))
  {
      @Html.AntiForgeryToken();
      @Html.Hidden("name");
      @Html.Hidden("value");
  }
  </code></pre>
  
  <p>Is there any way to cancel/abort/terminate an ajax query using Ajax.BeginForm if a user triggers a new update before the original update results are returned to the browser?</p>
  
  <p>Something similar to <a href="https://stackoverflow.com/questions/446594">Abort Ajax requests using jQuery</a> except preferably only using c#, not jQuery.
  I am aware that the controller-action will still process the previous request however I need the users experience to be based on the most recent action they have triggered.</p>