asp.net 3.5

How to use ASP.NET membership LoginView control

This simple and extremely powerful control allows you to display:

–  a different set of controls for anonymous and authenticated users.

–  different content based on which roles the currently logged-in user is assigned to

The LoginView control is a template control with different types of templates:

–  one for anonymous users

–  one for …

Learn more

How to use ASP.NET membership LoginStatus control

This simple control displays:

–  a login link if the user is not authenticated which automatically redirects to the configured login page

–  a logout link if the user is authenticated which automatically calls the method FormsAuthentication.SignOut

for logging off the user.

 

You can customize the LoginStatus control easily, because …

Learn more

How to program the ASP.NET Membership Login control in VB.NET

The ASP.NET membership Login control supports several events and properties and you can use them to customize its behavior. The Login control supports the next events:

Event

Description

LoggingIn
Raised before the user gets authenticated by the control.

Authenticate

Raised to authenticate the user. If you handle this event, you have to authenticate the user on your own, …

Learn more

How to program the ASP.NET Membership Login control in C#

The ASP.NET membership Login control supports several events and properties and you can use them to customize its behavior. The Login control supports the next events:

Event

Description

LoggingIn
Raised before the user gets authenticated by the control.

Authenticate

Raised to authenticate the user. If you handle this event, you have to authenticate the user on …

Learn more

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