PageModel.RedirectToPage PageModel.RedirectToPage PageModel.RedirectToPage Method

Definition

Overloads

RedirectToPage() RedirectToPage() RedirectToPage()

Redirects (Status302Found) to the current page.

RedirectToPage(Object) RedirectToPage(Object) RedirectToPage(Object)

Redirects (Status302Found) to the current page with the specified routeValues.

RedirectToPage(String) RedirectToPage(String) RedirectToPage(String)

Redirects (Status302Found) to the specified pageName.

RedirectToPage(String, Object) RedirectToPage(String, Object) RedirectToPage(String, Object)

Redirects (Status302Found) to the specified pageName using the specified routeValues.

RedirectToPage(String, String) RedirectToPage(String, String) RedirectToPage(String, String)

Redirects (Status302Found) to the specified pageName using the specified pageHandler.

RedirectToPage(String, String, Object) RedirectToPage(String, String, Object) RedirectToPage(String, String, Object)

Redirects (Status302Found) to the specified pageName using the specified pageHandler and routeValues.

RedirectToPage(String, String, String) RedirectToPage(String, String, String) RedirectToPage(String, String, String)

Redirects (Status302Found) to the specified pageName using the specified fragment.

RedirectToPage(String, String, Object, String) RedirectToPage(String, String, Object, String) RedirectToPage(String, String, Object, String)

Redirects (Status302Found) to the specified pageName using the specified routeValues and fragment.

RedirectToPage() RedirectToPage() RedirectToPage()

Redirects (Status302Found) to the current page.

public virtual Microsoft.AspNetCore.Mvc.RedirectToPageResult RedirectToPage ();
abstract member RedirectToPage : unit -> Microsoft.AspNetCore.Mvc.RedirectToPageResult
override this.RedirectToPage : unit -> Microsoft.AspNetCore.Mvc.RedirectToPageResult
Public Overridable Function RedirectToPage () As RedirectToPageResult

Returns

RedirectToPage(Object) RedirectToPage(Object) RedirectToPage(Object)

Redirects (Status302Found) to the current page with the specified routeValues.

public virtual Microsoft.AspNetCore.Mvc.RedirectToPageResult RedirectToPage (object routeValues);
abstract member RedirectToPage : obj -> Microsoft.AspNetCore.Mvc.RedirectToPageResult
override this.RedirectToPage : obj -> Microsoft.AspNetCore.Mvc.RedirectToPageResult
Public Overridable Function RedirectToPage (routeValues As Object) As RedirectToPageResult

Parameters

routeValues
Object Object Object

The parameters for a route.

Returns

RedirectToPage(String) RedirectToPage(String) RedirectToPage(String)

Redirects (Status302Found) to the specified pageName.

public virtual Microsoft.AspNetCore.Mvc.RedirectToPageResult RedirectToPage (string pageName);
abstract member RedirectToPage : string -> Microsoft.AspNetCore.Mvc.RedirectToPageResult
override this.RedirectToPage : string -> Microsoft.AspNetCore.Mvc.RedirectToPageResult
Public Overridable Function RedirectToPage (pageName As String) As RedirectToPageResult

Parameters

pageName
String String String

The name of the page.

Returns

RedirectToPage(String, Object) RedirectToPage(String, Object) RedirectToPage(String, Object)

Redirects (Status302Found) to the specified pageName using the specified routeValues.

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

Parameters

pageName
String String String

The name of the page.

routeValues
Object Object Object

The parameters for a route.

Returns

RedirectToPage(String, String) RedirectToPage(String, String) RedirectToPage(String, String)

Redirects (Status302Found) to the specified pageName using the specified pageHandler.

public virtual Microsoft.AspNetCore.Mvc.RedirectToPageResult RedirectToPage (string pageName, string pageHandler);
abstract member RedirectToPage : string * string -> Microsoft.AspNetCore.Mvc.RedirectToPageResult
override this.RedirectToPage : string * string -> Microsoft.AspNetCore.Mvc.RedirectToPageResult
Public Overridable Function RedirectToPage (pageName As String, pageHandler As String) As RedirectToPageResult

Parameters

pageName
String String String

The name of the page.

pageHandler
String String String

The page handler to redirect to.

Returns

RedirectToPage(String, String, Object) RedirectToPage(String, String, Object) RedirectToPage(String, String, Object)

Redirects (Status302Found) to the specified pageName using the specified pageHandler and routeValues.

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

Parameters

pageName
String String String

The name of the page.

pageHandler
String String String

The page handler to redirect to.

routeValues
Object Object Object

The parameters for a route.

Returns

RedirectToPage(String, String, String) RedirectToPage(String, String, String) RedirectToPage(String, String, String)

Redirects (Status302Found) to the specified pageName using the specified fragment.

public virtual Microsoft.AspNetCore.Mvc.RedirectToPageResult RedirectToPage (string pageName, string pageHandler, string fragment);
abstract member RedirectToPage : string * string * string -> Microsoft.AspNetCore.Mvc.RedirectToPageResult
override this.RedirectToPage : string * string * string -> Microsoft.AspNetCore.Mvc.RedirectToPageResult
Public Overridable Function RedirectToPage (pageName As String, pageHandler As String, fragment As String) As RedirectToPageResult

Parameters

pageName
String String String

The name of the page.

pageHandler
String String String

The page handler to redirect to.

fragment
String String String

The fragment to add to the URL.

Returns

RedirectToPage(String, String, Object, String) RedirectToPage(String, String, Object, String) RedirectToPage(String, String, Object, String)

Redirects (Status302Found) to the specified pageName using the specified routeValues and fragment.

public virtual Microsoft.AspNetCore.Mvc.RedirectToPageResult RedirectToPage (string pageName, string pageHandler, object routeValues, string fragment);
abstract member RedirectToPage : string * string * obj * string -> Microsoft.AspNetCore.Mvc.RedirectToPageResult
override this.RedirectToPage : string * string * obj * string -> Microsoft.AspNetCore.Mvc.RedirectToPageResult
Public Overridable Function RedirectToPage (pageName As String, pageHandler As String, routeValues As Object, fragment As String) As RedirectToPageResult

Parameters

pageName
String String String

The name of the page.

pageHandler
String String String

The page handler to redirect to.

routeValues
Object Object Object

The parameters for a route.

fragment
String String String

The fragment to add to the URL.

Returns

Applies to