HttpRuntimeSection.UseFullyQualifiedRedirectUrl Property

 

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

Namespace:   System.Web.Configuration
Assembly:  System.Web (in System.Web.dll)

[ConfigurationPropertyAttribute("useFullyQualifiedRedirectUrl", 
	DefaultValue = false)]
public bool UseFullyQualifiedRedirectUrl { get; set; }

Property Value

Type: System.Boolean

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

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.

System_CAPS_noteNote

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

The following example shows how to use the UseFullyQualifiedRedirectUrl property.

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

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

.NET Framework
Available since 2.0
Return to top
Show: