CustomError.Redirect Property
.NET Framework (current version)
Gets or sets the redirection URL.
Assembly: System.Web (in System.Web.dll)
[ConfigurationPropertyAttribute("redirect", IsRequired = true)] [StringValidatorAttribute(MinLength = 1)] public string Redirect { get; set; }
Property Value
Type: System.StringThe URL to which the application is redirected when an error occurs.
The Redirect property identifies the URL of the custom page associated with a specific error.
The following code example shows how to use the redirection URL. Refer to the code example in the CustomError class topic to learn how to get the collection.
.NET Framework
Available since 2.0
Available since 2.0
Show: