Raises the Login.LoggingIn event when a user submits login information but before the authentication takes place.
- e
A System.Web.UI.WebControls.LoginCancelEventArgs containing the event data.
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.