title: submit form outside Html.BeginForm MVC
body: <p>I want to be able to submit a form outside the Html.BeginForm, this is what i have and is working inside the form..</p>
  
  <pre><code>&lt;button type="submit" class="btn btn-default" value="previous" formaction='@Url.Action("Previous", "StudentTest")' &gt;previous &lt;/button&gt;
  </code></pre>
  
  <p>I looked around and found a solution: give ur Html.BeginForm a name like this:</p>
  
  <pre><code>Html.BeginForm(new {name = "form1" })
  </code></pre>
  
  <p>and then use this :</p>
  
  <pre><code>onclick="document.form1.submit();"
  </code></pre>
  
  <p>But is it possible to use the same thing in the Url.Action instead of the onclick because i need the function in the controller?</p>
  
  <p>Cheers</p>