ASP.NET Security Tutorials

How to use ASP.NET Membership Login control with templates

The ASP.NET Membership Login control supports templates as other ASP.NET controls. You can customize the contents of the Login control without any limitation, by using templates. You can add any control you wanted to your Login control. The next markup shows how you can use a custom template for the Login control through the LayoutTemplate tag:

 

<asp:Login …

Learn more

ASP.NET Membership Login control customization properties

The ASP.NET membership Login control provides additional customization properties you can use to manage its UI, except ones described in the article How to manage ASP.NET membership Login control appearance. For example, by using them, you can:

– Display a login link instead of a login button;

– Select the text displayed for the …

Learn more

How to manage ASP.NET membership Login control appearance

The ASP.NET membership Login control provides several properties you can use to manage its appearance. For example you can use the different style settings supported by the Login control as follows:

 

<form id=”form1″ runat=”server”>

<div align=”center”>

<asp:Login ID=”LoginCtrl” runat=”server” BorderColor=”Blue” BorderStyle=”Solid” BorderWidth=”1px”

Font-Bold=”True” Font-Names=”Arial Narrow” Font-Size=”Medium” TextLayout=”TextOnTop”

OnAuthenticate=”LoginCtrl_Authenticate”>

<LoginButtonStyle BackColor=”Silver” ForeColor=”Black” />

Learn more

ASP.NET Membership login control

The Login control simplifies the creation of a login page for forms authentication in conjunction with the membership API. It provides you with a ready-to-use user interface that queries the user name and password from the user and offers a Log In button for logging the user in. The next picture presents the Login control in action:

Learn more

ASP.NET Membership security controls in ASP.NET

ASP.NET ships with several controls you can use in your ASP.NET pages that simplify the process of creating login pages. These controls rely on the underlying forms authentication and the membership API infrastructure. The next table describes security controls that ship with ASP.NET and summarizes their typical usage scenarios:

 

Control

Primary usage

Login

The …

Learn more

How to find the correct version of Aspnet_regsql.exe

You can find Aspnet_regsql.exe in the Microsoft.NET Framework directory. If the computer is running multiple .NET Framework versions side-by-side, multiple versions of the tool might be installed. The next table lists the locations where the tool is installed for different versions of the .NET Framework.

Version of .NET Framework
Location of Aspnet_regsql.exe file

.NET Framework version 2.0/3.0/3.5 (32-bit systems)
%windir%\Microsoft.NET\Framework\v2.0.50727

.NET Framework …

Learn more