Asp.Net : Setting the DefaultButton for the LoginControl

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

Tags: , ,

ASP.Net | Controls

Asp.Net Membership: Set url to the login page

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.

Tags: , ,

ASP.Net

Powered by BlogEngine.NET 1.5.0.7
Theme by Mads Kristensen

About Me

My name is Pieter Brinkman I am a .NET Software Engineer for Achmea IT in De Meern, The Netherlands. My interests are mainly web applications created with ASP.NET, MSSQL and Silverlight.

Calendar

<<  September 2010  >>
MoTuWeThFrSaSu
303112345
6789101112
13141516171819
20212223242526
27282930123
45678910

View posts in large calendar

RecentComments

Comment RSS

Most comments

club penguin cheats club penguin cheats
4 comments
us United States
Web Design Company Web Design Company
2 comments
Web design Web design
2 comments
gb United Kingdom