System.Web.UI.WebControls.Login.OnLoggingIn Method

Raises the Login.LoggingIn event when a user submits login information but before the authentication takes place.

Syntax

protected virtual void OnLoggingIn (LoginCancelEventArgs e)

Parameters

e
A System.Web.UI.WebControls.LoginCancelEventArgs containing the event data.

Remarks

The Login.OnLoggingIn(LoginCancelEventArgs) method raises the Login.LoggingIn event. Use the Login.LoggingIn event to perform any processing that you need before authenticating a user or to perform custom validation.

Raising an event invokes the event handler through a delegate. For more information, see Handling and Raising Events.

The Login.OnLoggingIn(LoginCancelEventArgs) method also allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class.

Requirements

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