HttpResponseWrapper.Redirect Method (String)

 

Redirects a request to the specified URL.

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

public override void Redirect(
	string url
)

Parameters

url
Type: System.String

The target location.

Exception Condition
HttpException

Redirection was attempted after the HTTP headers were sent.

.NET Framework
Available since 3.5
Return to top
Show: