Controller.RedirectToAction Method

Definition

Overloads

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, String)

Redirects to the specified action using the action name and controller name.

RedirectToAction(String, RouteValueDictionary)

Redirects to the specified action using the action name and route dictionary.

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.

RedirectToAction(String)

Redirects to the specified action using the action name.

protected internal System.Web.Mvc.RedirectToRouteResult RedirectToAction (string actionName);
member this.RedirectToAction : string -> System.Web.Mvc.RedirectToRouteResult
Protected Friend Function RedirectToAction (actionName As String) As RedirectToRouteResult

Parameters

actionName
String

The name of the action.

Returns

The redirect result object.

Applies to

RedirectToAction(String, Object)

Redirects to the specified action using the action name and route values.

protected internal System.Web.Mvc.RedirectToRouteResult RedirectToAction (string actionName, object routeValues);
member this.RedirectToAction : string * obj -> System.Web.Mvc.RedirectToRouteResult
Protected Friend Function RedirectToAction (actionName As String, routeValues As Object) As RedirectToRouteResult

Parameters

actionName
String

The name of the action.

routeValues
Object

The parameters for a route.

Returns

The redirect result object.

Applies to

RedirectToAction(String, String)

Redirects to the specified action using the action name and controller name.

protected internal System.Web.Mvc.RedirectToRouteResult RedirectToAction (string actionName, string controllerName);
member this.RedirectToAction : string * string -> System.Web.Mvc.RedirectToRouteResult
Protected Friend Function RedirectToAction (actionName As String, controllerName As String) As RedirectToRouteResult

Parameters

actionName
String

The name of the action.

controllerName
String

The name of the controller.

Returns

The redirect result object.

Applies to

RedirectToAction(String, RouteValueDictionary)

Redirects to the specified action using the action name and route dictionary.

protected internal System.Web.Mvc.RedirectToRouteResult RedirectToAction (string actionName, System.Web.Routing.RouteValueDictionary routeValues);
member this.RedirectToAction : string * System.Web.Routing.RouteValueDictionary -> System.Web.Mvc.RedirectToRouteResult
Protected Friend Function RedirectToAction (actionName As String, routeValues As RouteValueDictionary) As RedirectToRouteResult

Parameters

actionName
String

The name of the action.

routeValues
RouteValueDictionary

The parameters for a route.

Returns

The redirect result object.

Applies to

RedirectToAction(String, String, Object)

Redirects to the specified action using the action name, controller name, and route dictionary.

protected internal System.Web.Mvc.RedirectToRouteResult RedirectToAction (string actionName, string controllerName, object routeValues);
member this.RedirectToAction : string * string * obj -> System.Web.Mvc.RedirectToRouteResult
Protected Friend Function RedirectToAction (actionName As String, controllerName As String, routeValues As Object) As RedirectToRouteResult

Parameters

actionName
String

The name of the action.

controllerName
String

The name of the controller.

routeValues
Object

The parameters for a route.

Returns

The redirect result object.

Applies to

RedirectToAction(String, String, RouteValueDictionary)

Redirects to the specified action using the action name, controller name, and route values.

protected internal virtual System.Web.Mvc.RedirectToRouteResult RedirectToAction (string actionName, string controllerName, System.Web.Routing.RouteValueDictionary routeValues);
abstract member RedirectToAction : string * string * System.Web.Routing.RouteValueDictionary -> System.Web.Mvc.RedirectToRouteResult
override this.RedirectToAction : string * string * System.Web.Routing.RouteValueDictionary -> System.Web.Mvc.RedirectToRouteResult
Protected Friend Overridable Function RedirectToAction (actionName As String, controllerName As String, routeValues As RouteValueDictionary) As RedirectToRouteResult

Parameters

actionName
String

The name of the action.

controllerName
String

The name of the controller.

routeValues
RouteValueDictionary

The parameters for a route.

Returns

The redirect result object.

Applies to