System.Web.UI.WebControls.Login.LoggingIn Event

Occurs when a user submits login information, before authentication takes place.

Syntax

public event LoginCancelEventHandler LoggingIn

Remarks

The Login.LoggingIn event is raised when a user submits login information but before the user is authenticated on the Web site. Use the Login.LoggingIn event to set up any information that you need before authenticating a user.

You can cancel a login attempt during the Login.LoggingIn event by setting the System.ComponentModel.CancelEventArgs.Cancel property of the System.ComponentModel.CancelEventArgs object to true.

After the Login.LoggingIn event is raised, the System.Web.UI.WebControls.Login control raises the Login.Authenticate event and then the Login.LoggedIn event.

For more information about handling events, see Handling and Raising Events.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0