Login.LoginError Event

 

Occurs when a login error is detected.

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

member LoginError : IEvent<EventHandler,
    EventArgs>

The LoginError event is raised when the credentials entered by the user are invalid. You can use the 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 NIB: Consuming Events.

The following code example uses the LoginError event to display Help links to the user when a login attempt fails.

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

.NET Framework
Available since 2.0
Return to top
Show: