by Pieter Brinkman
22. January 2009 08:01
You can set the DefaultButton property of the Login control by putting the Login control in a Panel and set the DefaultButton property of the panel to the LoginControlId$LoginButton.
Code example:
<asp:Panel ID="panelLogin" runat="server"
DefaultButton="Login1$LoginButton">
<asp:Login ID="Login1" runat="server" />
</asp:Panel>
Cheers,
Pieter
by Pieter Brinkman
4. December 2008 08:46
The loginstatus control doesn't have a property to set the url of the login page. You need to set this URL in the web.config of your application.
Insert the login URL between the authentication node of the web.config. So it looks like this
<authentication mode="Forms">
<forms loginUrl="~/pages/login.aspx" />
</authentication>
Change the value of the loginUrl to your login page.