System.Web.UI.WebControls.Login.LoginError Event

Occurs when a login error is detected.

Syntax

public event EventHandler LoginError

Remarks

The Login.LoginError event is raised when the credentials entered by the user are invalid. You can use the Login.LoginError event to redirect the user to a custom error page, to offer additional help, or to log failed login attempts.

For more information about handling events, see Consuming Events.

Requirements

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