LoginFailureAction Enumeration
.NET Framework 2.0
Note: This enumeration is new in the .NET Framework version 2.0.
Determines the page that the user will go to when a login attempt is not successful.
Namespace: System.Web.UI.WebControls
Assembly: System.Web (in system.web.dll)
Assembly: System.Web (in system.web.dll)
| Member name | Description | |
|---|---|---|
| RedirectToLoginPage | Redirects the user to the login page defined in the site's configuration files (Machine.config and Web.config). | |
| Refresh | Refreshes the current page so that the Login control can display an error message. |
The following code example demonstrates using the LoginFailureAction enumeration to set the FailureAction property to redirect the user to the login page defined in the Web.config file when a login attempt fails.
Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.
Community Additions
ADD
Show: