System.Web.Configuration.CustomErrorsSection.DefaultRedirect Property

Gets or sets the default URL for redirection.

Syntax

[System.Configuration.ConfigurationProperty("defaultRedirect")]
public string DefaultRedirect { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

If the CustomErrorsSection.DefaultRedirect is not specified, a standard error is displayed instead. The CustomErrorsSection.DefaultRedirect specifies the generic error page to activate in case no error custom page exists.

Note:

The URL might be an absolute or a relative value. A relative URL is relative to the Web.config file that specified the CustomErrorsSection.DefaultRedirect, not to the Web page in which the error occurred. A relative URL starting with a tilde (~) is relative to the root path of the application.

Requirements

Namespace: System.Web.Configuration
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0