Controller.RedirectToAction Controller.RedirectToAction Controller.RedirectToAction Method

Definition

Overloads

RedirectToAction(String) RedirectToAction(String) RedirectToAction(String)

Redirects to the specified action using the action name.

RedirectToAction(String, Object) RedirectToAction(String, Object) RedirectToAction(String, Object)

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

RedirectToAction(String, String) RedirectToAction(String, String) RedirectToAction(String, String)

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

RedirectToAction(String, RouteValueDictionary) RedirectToAction(String, RouteValueDictionary) RedirectToAction(String, RouteValueDictionary)

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

RedirectToAction(String, String, Object) RedirectToAction(String, String, Object) RedirectToAction(String, String, Object)

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

RedirectToAction(String, String, RouteValueDictionary) RedirectToAction(String, String, RouteValueDictionary) RedirectToAction(String, String, RouteValueDictionary)

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

RedirectToAction(String) RedirectToAction(String) 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 String String

The name of the action.

Returns

RedirectToAction(String, Object) RedirectToAction(String, Object) 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 String String

The name of the action.

routeValues
Object Object Object

The parameters for a route.

Returns

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

The name of the action.

controllerName
String String String

The name of the controller.

Returns

RedirectToAction(String, RouteValueDictionary) RedirectToAction(String, RouteValueDictionary) 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 String String

The name of the action.

routeValues
RouteValueDictionary RouteValueDictionary RouteValueDictionary

The parameters for a route.

Returns

RedirectToAction(String, String, Object) RedirectToAction(String, String, Object) 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 String String

The name of the action.

controllerName
String String String

The name of the controller.

routeValues
Object Object Object

The parameters for a route.

Returns

RedirectToAction(String, String, RouteValueDictionary) RedirectToAction(String, String, RouteValueDictionary) 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 String String

The name of the action.

controllerName
String String String

The name of the controller.

routeValues
RouteValueDictionary RouteValueDictionary RouteValueDictionary

The parameters for a route.

Returns

Applies to