title: ASP MVC onclick for button
body: <p>Ive just started to play around with ASP MVC and I come from a background of Web Forms. 
  Ive started a MVC internet application and wanted to know how a button calls an action from a controller. Here I would like to use the log in example that is provided with an MVC Internet application. </p>
  
  <p>AccountController:</p>
  
  <p>Lots of methods</p>
  
  <p>Login View:</p>
  
  <pre><code>@using (Html.BeginForm(new { ReturnUrl = ViewBag.ReturnUrl })) {
  @Html.AntiForgeryToken()
  @Html.ValidationSummary(true)
  
  &lt;fieldset&gt;
      &lt;legend&gt;Log in Form&lt;/legend&gt;
      &lt;ol&gt;
          &lt;li&gt;
              @Html.LabelFor(m =&gt; m.UserName)
              @Html.TextBoxFor(m =&gt; m.UserName)
              @Html.ValidationMessageFor(m =&gt; m.UserName)
          &lt;/li&gt;
          &lt;li&gt;
              @Html.LabelFor(m =&gt; m.Password)
              @Html.PasswordFor(m =&gt; m.Password)
              @Html.ValidationMessageFor(m =&gt; m.Password)
          &lt;/li&gt;
          &lt;li&gt;
              @Html.CheckBoxFor(m =&gt; m.RememberMe)
              @Html.LabelFor(m =&gt; m.RememberMe, new { @class = "checkbox" })
          &lt;/li&gt;
      &lt;/ol&gt;
      &lt;input type="submit" value="Log in" /&gt;
  &lt;/fieldset&gt;
  </code></pre>
  
  <p>so when I hit the sumbit button on the view, which method in the AccountController class will be called? and how do you work it out?</p>
  
  <p>Thanks all :)</p>