title: Why to use Ajax.BeginForm in mvc
body: <p>I have a several question about Ajax forms, i've read some information about, like ajax vx html forms. And the only reason people said was if you want to stay on the same  page use ajax else html, to redirect to another page.</p>
  
  <p>Are there other things i should pay attention when using ajax to html.beginform?</p>
  
  <p>Another question, is there a difference between using Ajax.Beginform and then writing a script:</p>
  
  <pre><code> $("form").submit(function () {
                  $.ajax({
                       success: function (result) {
                          $('#result').html(result);
                      }
                  });
          });
  </code></pre>
  
  <p>Or without writing a script, i just don't really see the difference, although in a lot of examples i see users do that ... but what is the point then? if you have this:</p>
  
  <pre><code> @using (Ajax.BeginForm("Action", "Controller", new AjaxOptions { HttpMethod = "POST", UpdateTargetId = "result" }, new { @class = "form-horizontal", role = "form" }))
              {}
  </code></pre>
  
  <p>Another question i could do basically the same using ajax jquery script and instead of ajax, i could do it with Html.Beginfrom and then on submit i call the function with ajax ...</p>
  
  <p>Another thing i often see when i juse ajax that when a post method is occured in the url i have like = ?length=7 (and i have not idea where this parameter comes from) Anyone idea?</p>
  
  <p>There are so many different approaches but there is nowhere said what is better what is best practice etc ...</p>
  
  <p>Maybe if anyone has a link to some reading about that i would appreciate.</p>