title: Why does my login page keep reloading, without trying to authenticate?
body: <p>In Controllers/AccountController.cs:</p>
  
  <pre><code>public class AccountController : Controller
  {
      //
      // GET: /Account/Login
      public ActionResult Login()
      {
          return View();
      }
      ...
  }
  </code></pre>
  
  <p>In web.config:</p>
  
  <pre><code>&lt;authentication mode="Forms"&gt;
    &lt;forms loginUrl="~/Account/Login" defaultUrl="~/Home/Index" name=".ASPXFORMSAUTH"/&gt;
  &lt;/authentication&gt;
  &lt;authorization&gt;
    &lt;deny users="?"/&gt;
  &lt;/authorization&gt;
  </code></pre>
  
  <p>In Views/Account/Login.aspx:</p>
  
  <pre><code>&lt;script runat="server" type="text/C#"&gt;
      protected void Page_Load(object sender, EventArgs e) {...}
      protected void OnAuthenticate(object sender, AuthenticateEventArgs e) {...}
      protected void OnLoggedIn(object sender, EventArgs e){...}
      protected void OnLoginError(object sender, EventArgs e){...}
  &lt;/script&gt;
  
  ...
  
  &lt;asp:Login ID="login1" runat="server" 
             DestinationPageUrl="~/Views/Home/Index.aspx"
             OnAuthenticate="OnAuthenticate" 
             OnLoggedIn="OnLoggedIn" 
             OnLoginError="OnLoginError"&gt;
      ...
      &lt;asp:Button ID="loginButton" runat="server" CommandName="Login1" Text="Login" ValidationGroup="login1" TabIndex="4" /&gt;
      ...
  &lt;/asp:Login&gt;
  </code></pre>
  
  <p><code>Page_Load</code> is called, but then <code>OnAuthenticate</code>, <code>OnLoggedIn</code>, and <code>OnLoginError</code> are never called. Why is that?</p>
  
  <p>I am using MVC, and what happens after clicking the "Login" button is I am taken back to the AccountController. This returns the Login.aspx View, so the login page just gets reloaded.</p>