asp.net 2.0

How to customize ASP.NET membership PasswordRecovery control in C#

You can customize the PasswordRecovery control completely, by using templates for every view:

–  The UserNameTemplate contains all the controls displayed for the first step of the password recovery process when the user is required to enter the user name.

–  The control of the password question step which is placed in …

Learn more

How to use ASP.NET membership PasswordRecovery control

You, as software engineer, can use the PasswordRecovery control to solve the issues with all users who have forgotten their passwords.  This control queries the user name from the user and afterward automatically displays the password question stored for the user in the credential store. If the user provides the correct for the password question, the password is …

Learn more

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