HttpRuntimeSection.UseFullyQualifiedRedirectUrl Property

Definition

Gets or sets a value that indicates whether the client-side redirects are fully qualified.

C#
[System.Configuration.ConfigurationProperty("useFullyQualifiedRedirectUrl", DefaultValue=false)]
public bool UseFullyQualifiedRedirectUrl { get; set; }

Property Value

true if client-side redirects are fully qualified; otherwise, false. The default value is false.

Attributes

Examples

The following example shows how to use the UseFullyQualifiedRedirectUrl property.

C#
// Get the UseFullyQualifiedRedirectUrl property value.
Response.Write("UseFullyQualifiedRedirectUrl: " +
  configSection.UseFullyQualifiedRedirectUrl + "<br>");

// Set the UseFullyQualifiedRedirectUrl property value set to true.
configSection.UseFullyQualifiedRedirectUrl = true;

Remarks

The UseFullyQualifiedRedirectUrl property indicates whether client-side redirects are fully qualified (in the form http://server/path) or whether relative redirects are instead sent to the client.

Note

Some browsers might have problems loading pages in cookieless sessions when this value is false.

Applies to

Product Versions
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1