LoginFailureAction Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Determines the page that the user will go to when a login attempt is not successful.
public enum class LoginFailureAction
public enum LoginFailureAction
type LoginFailureAction =
Public Enum LoginFailureAction
- Inheritance
Fields
| Name | Value | Description |
|---|---|---|
| Refresh | 0 | Refreshes the current page so that the Login control can display an error message. |
| RedirectToLoginPage | 1 | Redirects the user to the login page defined in the site's configuration files (Machine.config and Web.config). |
Examples
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.
<%@ Page Language="C#" AutoEventWireup="False"%>
ASP.NET Example
<%@ Page Language="VB" AutoEventWireup="False"%>
ASP.NET Example