Controller::RedirectToAction Method
Returns an HTTP 302 response to the browser, which causes the browser to make a GET request to the specified action.
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
| Name | Description | |
|---|---|---|
![]() | RedirectToAction(String^) | Redirects to the specified action using the action name. |
![]() | RedirectToAction(String^, Object^) | Redirects to the specified action using the action name and route values. |
![]() | RedirectToAction(String^, RouteValueDictionary^) | Redirects to the specified action using the action name and route dictionary. |
![]() | RedirectToAction(String^, String^) | Redirects to the specified action using the action name and controller name. |
![]() | RedirectToAction(String^, String^, Object^) | Redirects to the specified action using the action name, controller name, and route dictionary. |
![]() | RedirectToAction(String^, String^, RouteValueDictionary^) | Redirects to the specified action using the action name, controller name, and route values. |
Controller::RedirectToAction Method (String^)
Redirects to the specified action using the action name.
Parameters
- actionName
-
Type:
System::String^
The name of the action.
Controller::RedirectToAction Method (String^, Object^)
Redirects to the specified action using the action name and route values.
public protected: RedirectToRouteResult^ RedirectToAction( String^ actionName, Object^ routeValues )
Parameters
- actionName
-
Type:
System::String^
The name of the action.
- routeValues
-
Type:
System::Object^
The parameters for a route.
Controller::RedirectToAction Method (String^, RouteValueDictionary^)
Redirects to the specified action using the action name and route dictionary.
public protected: RedirectToRouteResult^ RedirectToAction( String^ actionName, RouteValueDictionary^ routeValues )
Parameters
- actionName
-
Type:
System::String^
The name of the action.
- routeValues
-
Type:
System.Web.Routing::RouteValueDictionary^
The parameters for a route.
Controller::RedirectToAction Method (String^, String^)
Redirects to the specified action using the action name and controller name.
public protected: RedirectToRouteResult^ RedirectToAction( String^ actionName, String^ controllerName )
Parameters
- actionName
-
Type:
System::String^
The name of the action.
- controllerName
-
Type:
System::String^
The name of the controller.
Controller::RedirectToAction Method (String^, String^, Object^)
Redirects to the specified action using the action name, controller name, and route dictionary.
public protected: RedirectToRouteResult^ RedirectToAction( String^ actionName, String^ controllerName, Object^ routeValues )
Parameters
- actionName
-
Type:
System::String^
The name of the action.
- controllerName
-
Type:
System::String^
The name of the controller.
- routeValues
-
Type:
System::Object^
The parameters for a route.
Controller::RedirectToAction Method (String^, String^, RouteValueDictionary^)
Redirects to the specified action using the action name, controller name, and route values.
public protected: virtual RedirectToRouteResult^ RedirectToAction( String^ actionName, String^ controllerName, RouteValueDictionary^ routeValues )
Parameters
- actionName
-
Type:
System::String^
The name of the action.
- controllerName
-
Type:
System::String^
The name of the controller.
- routeValues
-
Type:
System.Web.Routing::RouteValueDictionary^
The parameters for a route.
