Login.LoggingIn Event

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

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in system.web.dll)

No code example is currently available or this language may not be supported.
/** @event */
public void add_LoggingIn (LoginCancelEventHandler value)

/** @event */
public void remove_LoggingIn (LoginCancelEventHandler value)

In JScript, you can handle the events defined by a class, but you cannot define your own.
Not applicable.

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

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

After the LoggingIn event is raised, the Login control raises the Authenticate event and then the LoggedIn event.

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

The following code example uses the LoggingIn event to ensure that the user has entered a well-formed e-mail address in the UserName property. If not, the LoggingIn event cancels the login attempt and displays an error message using the InstructionText property.

No code example is currently available or this language may not be supported.

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show: