Export (0) Print
Expand All

HttpResponseBase.Redirect Method (String, Boolean)

Redirects a request to the specified URL and specifies whether execution of the current process should terminate.

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

public virtual void Redirect(
	string url,
	bool endResponse
)

Parameters

url
Type: System.String

The target location.

endResponse
Type: System.Boolean

true to terminate the current process.

ExceptionCondition
NotImplementedException

Always.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5 SP1
Show:
© 2015 Microsoft