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

Powered by BlogEngine.NET 1.5.0.7
Theme by Mads Kristensen

About Me

My name is Pieter Brinkman I am Solution Architect for Sitecore in The Netherlands. My interests are mainly ASP.NET, MSSQL and Content Management Systems.

Calendar

<<  February 2012  >>
MoTuWeThFrSaSu
303112345
6789101112
13141516171819
20212223242526
2728291234
567891011

View posts in large calendar

RecentComments

Comment RSS

Most comments