Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
.NET Framework 3.5
 RedirectMode Property

  Switch on low bandwidth view
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
.NET Framework Class Library
CustomErrorsSection..::.RedirectMode Property

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
Visual Basic (Usage)
Dim instance As CustomErrorsSection
Dim value As CustomErrorsRedirectMode

value = instance.RedirectMode

instance.RedirectMode = value
C#
[ConfigurationPropertyAttribute("redirectMode", DefaultValue = CustomErrorsRedirectMode.ResponseRedirect)]
public CustomErrorsRedirectMode RedirectMode { get; set; }
Visual C++
[ConfigurationPropertyAttribute(L"redirectMode", DefaultValue = CustomErrorsRedirectMode::ResponseRedirect)]
public:
property CustomErrorsRedirectMode RedirectMode {
    CustomErrorsRedirectMode get ();
    void set (CustomErrorsRedirectMode value);
}
JScript
public function get RedirectMode () : CustomErrorsRedirectMode
public function set RedirectMode (value : CustomErrorsRedirectMode)

Property Value

Type: System.Web.Configuration..::.CustomErrorsRedirectMode
A value that indicates whether the URL is changed when the user to the custom error page. The default value is ResponseRedirect.

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
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker