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.
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.
member RedirectToAction : actionName:string * routeValues:RouteValueDictionary -> RedirectToRouteResult
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.
member RedirectToAction : actionName:string * controllerName:string -> RedirectToRouteResult
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.
member RedirectToAction : actionName:string * controllerName:string * routeValues:Object -> RedirectToRouteResult
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.
abstract RedirectToAction : actionName:string * controllerName:string * routeValues:RouteValueDictionary -> RedirectToRouteResult override RedirectToAction : actionName:string * controllerName:string * routeValues:RouteValueDictionary -> RedirectToRouteResult
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.
