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.
<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