title: Broken ASP.Net Login Control
body: <p>Help! I'm using the ASP.Net Login control on a Login page, but the Login button no longer appears to be working and the Authenticate event is not firing. On clicking Log In, the page just returns to the Login page.</p>
  
  <p>web.config extract</p>
  
  <pre><code>&lt;authorization&gt;
   &lt;deny users="?" /&gt;
    &lt;allow users="*" /&gt;
  &lt;/authorization&gt;
  
  &lt;authentication mode="Forms"&gt;
    &lt;forms loginUrl="Login.aspx" timeout="15" defaultUrl="Default.aspx" /&gt;
  &lt;/authentication&gt;
  </code></pre>
  
  <p>I have also set the path of my App_Themes folder to be accessible to anonymous users, so that images and stylesheets etc. appear OK. </p>
  
  <p>The login control itself has its DestinationUrl property set to "Default.aspx" and validation is working, as if I omit either the Username or Password fields, I get validation errors appearing on the page.</p>
  
  <p>Login control markup:</p>
  
  <pre><code>&lt;asp:Login ID="Login1" runat="server" LoginButtonType="Image" 
    Width="557px" DestinationPageUrl="~/Default.aspx" 
    InstructionText="To login, please enter your username and password below."
    DisplayRememberMe="False" OnAuthenticate="Login1_Authenticate" LoginButtonImageUrl="~/App_Themes/RDCU/Images/submit.gif"&gt;
    &lt;InstructionTextStyle Font-Names="Verdana" Font-Size="Small" ForeColor="#00A4E8" Height="40px" /&gt;
     &lt;TitleTextStyle CssClass="header" HorizontalAlign="Left" /&gt;
     &lt;TextBoxStyle Width="200px" /&gt;
     &lt;LabelStyle Font-Bold="True" /&gt;
  &lt;/asp:Login&gt;
  </code></pre>
  
  <p>It has worked previously, but I don't believe I've changed anything to make it stop working.</p>