Gets or sets a value that indicates whether the URL of the request should be changed when the user is redirected to a custom error page.
Namespace:
System.Web.Configuration
Assembly:
System.Web (in System.Web.dll)
Visual Basic (Declaration)
<ConfigurationPropertyAttribute("redirectMode", DefaultValue := CustomErrorsRedirectMode.ResponseRedirect)> _
Public Property RedirectMode As CustomErrorsRedirectMode
Dim instance As CustomErrorsSection
Dim value As CustomErrorsRedirectMode
value = instance.RedirectMode
instance.RedirectMode = value
[ConfigurationPropertyAttribute("redirectMode", DefaultValue = CustomErrorsRedirectMode.ResponseRedirect)]
public CustomErrorsRedirectMode RedirectMode { get; set; }
[ConfigurationPropertyAttribute(L"redirectMode", DefaultValue = CustomErrorsRedirectMode::ResponseRedirect)]
public:
property CustomErrorsRedirectMode RedirectMode {
CustomErrorsRedirectMode get ();
void set (CustomErrorsRedirectMode value);
}
public function get RedirectMode () : CustomErrorsRedirectMode
public function set RedirectMode (value : CustomErrorsRedirectMode)
If the RedirectMode property is set to ResponseRedirect, the user is redirected to the error page and the original URL is changed to the URL of the error page. If the RedirectMode property is set to ResponseRewrite, the user is sent to error page and the original URL in the browser is not changed.
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
.NET Framework
Supported in: 3.5 SP1, 3.0 SP2, 2.0 SP2
Reference