PageModel.RedirectToAction PageModel.RedirectToAction PageModel.RedirectToAction Method

Definition

Overloads

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

Redirects (Status302Found) to the specified action using the actionName.

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

Redirects (Status302Found) to the specified action using the actionName and routeValues.

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

Redirects (Status302Found) to the specified action using the actionName and the controllerName.

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

Redirects (Status302Found) to the specified action using the specified actionName, controllerName, and routeValues.

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

Redirects (Status302Found) to the specified action using the specified actionName, controllerName, and fragment.

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

Redirects (Status302Found) to the specified action using the specified actionName, controllerName, routeValues, and fragment.

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

Redirects (Status302Found) to the specified action using the actionName.

public virtual Microsoft.AspNetCore.Mvc.RedirectToActionResult RedirectToAction (string actionName);
abstract member RedirectToAction : string -> Microsoft.AspNetCore.Mvc.RedirectToActionResult
override this.RedirectToAction : string -> Microsoft.AspNetCore.Mvc.RedirectToActionResult
Public Overridable Function RedirectToAction (actionName As String) As RedirectToActionResult

Parameters

actionName
String String String

The name of the action.

Returns

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

Redirects (Status302Found) to the specified action using the actionName and routeValues.

public virtual Microsoft.AspNetCore.Mvc.RedirectToActionResult RedirectToAction (string actionName, object routeValues);
abstract member RedirectToAction : string * obj -> Microsoft.AspNetCore.Mvc.RedirectToActionResult
override this.RedirectToAction : string * obj -> Microsoft.AspNetCore.Mvc.RedirectToActionResult
Public Overridable Function RedirectToAction (actionName As String, routeValues As Object) As RedirectToActionResult

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 (Status302Found) to the specified action using the actionName and the controllerName.

public virtual Microsoft.AspNetCore.Mvc.RedirectToActionResult RedirectToAction (string actionName, string controllerName);
abstract member RedirectToAction : string * string -> Microsoft.AspNetCore.Mvc.RedirectToActionResult
override this.RedirectToAction : string * string -> Microsoft.AspNetCore.Mvc.RedirectToActionResult
Public Overridable Function RedirectToAction (actionName As String, controllerName As String) As RedirectToActionResult

Parameters

actionName
String String String

The name of the action.

controllerName
String String String

The name of the pageModel.

Returns

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

Redirects (Status302Found) to the specified action using the specified actionName, controllerName, and routeValues.

public virtual Microsoft.AspNetCore.Mvc.RedirectToActionResult RedirectToAction (string actionName, string controllerName, object routeValues);
abstract member RedirectToAction : string * string * obj -> Microsoft.AspNetCore.Mvc.RedirectToActionResult
override this.RedirectToAction : string * string * obj -> Microsoft.AspNetCore.Mvc.RedirectToActionResult
Public Overridable Function RedirectToAction (actionName As String, controllerName As String, routeValues As Object) As RedirectToActionResult

Parameters

actionName
String String String

The name of the action.

controllerName
String String String

The name of the pageModel.

routeValues
Object Object Object

The parameters for a route.

Returns

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

Redirects (Status302Found) to the specified action using the specified actionName, controllerName, and fragment.

public virtual Microsoft.AspNetCore.Mvc.RedirectToActionResult RedirectToAction (string actionName, string controllerName, string fragment);
abstract member RedirectToAction : string * string * string -> Microsoft.AspNetCore.Mvc.RedirectToActionResult
override this.RedirectToAction : string * string * string -> Microsoft.AspNetCore.Mvc.RedirectToActionResult
Public Overridable Function RedirectToAction (actionName As String, controllerName As String, fragment As String) As RedirectToActionResult

Parameters

actionName
String String String

The name of the action.

controllerName
String String String

The name of the pageModel.

fragment
String String String

The fragment to add to the URL.

Returns

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

Redirects (Status302Found) to the specified action using the specified actionName, controllerName, routeValues, and fragment.

public virtual Microsoft.AspNetCore.Mvc.RedirectToActionResult RedirectToAction (string actionName, string controllerName, object routeValues, string fragment);
abstract member RedirectToAction : string * string * obj * string -> Microsoft.AspNetCore.Mvc.RedirectToActionResult
override this.RedirectToAction : string * string * obj * string -> Microsoft.AspNetCore.Mvc.RedirectToActionResult
Public Overridable Function RedirectToAction (actionName As String, controllerName As String, routeValues As Object, fragment As String) As RedirectToActionResult

Parameters

actionName
String String String

The name of the action.

controllerName
String String String

The name of the pageModel.

routeValues
Object Object Object

The parameters for a route.

fragment
String String String

The fragment to add to the URL.

Returns

Applies to