System.Web.HttpResponse.RedirectLocation Property

Gets or sets the value of the Http Location header.

Syntax

public string RedirectLocation { set; get; }

Value

The redirect

Remarks

This is a low-level request, for the Location header to be complete you must also update the StatusCode to one of the valid redirection codes (3xx). See the HttpResponse.Redirect(string) and HttpResponse.Redirect(string, bool) methods for a high-level interface to redirection.

If set this property controls whether the header "Location" in the HTTP headers is set. If the value is null the header is not sent, any other values will cause the "Location" header to be sent.

Requirements

Namespace: System.Web
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0