HttpResponseWrapper::Redirect Method (String^, Boolean)
.NET Framework (current version)
Redirects a request to the specified URL and specifies whether execution of the current process should terminate.
Assembly: System.Web (in System.Web.dll)
Parameters
- url
-
Type:
System::String^
The target location.
- endResponse
-
Type:
System::Boolean
true to terminate the current process.
| Exception | Condition |
|---|---|
| ArgumentNullException | url is null. |
| ArgumentException | url contains a newline character. |
| HttpException | Redirection was attempted after the HTTP headers were sent. |
| ApplicationException | The request is the result of a callback. |
.NET Framework
Available since 3.5
Available since 3.5
Show: