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.
web.config extract
<authorization>
<deny users="?" />
<allow users="*" />
</authorization>
<authentication mode="Forms">
<forms loginUrl="Login.aspx" timeout="15" defaultUrl="Default.aspx" />
</authentication>
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.
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.
Login control markup:
<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">
<InstructionTextStyle Font-Names="Verdana" Font-Size="Small" ForeColor="#00A4E8" Height="40px" />
<TitleTextStyle CssClass="header" HorizontalAlign="Left" />
<TextBoxStyle Width="200px" />
<LabelStyle Font-Bold="True" />
</asp:Login>
It has worked previously, but I don't believe I've changed anything to make it stop working.