PageModel.RedirectToPage Method

Definition

Overloads

RedirectToPage()

Redirects (Status302Found) to the current page.

RedirectToPage(Object)

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

RedirectToPage(String)

Redirects (Status302Found) to the specified pageName.

RedirectToPage(String, Object)

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

RedirectToPage(String, String)

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

RedirectToPage(String, String, Object)

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

RedirectToPage(String, String, String)

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

RedirectToPage(String, String, Object, String)

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

RedirectToPage()

Source:
PageModel.cs
Source:
PageModel.cs

Redirects (Status302Found) to the current page.

public:
 virtual Microsoft::AspNetCore::Mvc::RedirectToPageResult ^ RedirectToPage();
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

The RedirectToPageResult.

Applies to

RedirectToPage(Object)

Source:
PageModel.cs
Source:
PageModel.cs

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

public:
 virtual Microsoft::AspNetCore::Mvc::RedirectToPageResult ^ RedirectToPage(System::Object ^ routeValues);
public virtual Microsoft.AspNetCore.Mvc.RedirectToPageResult RedirectToPage (object 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

The parameters for a route.

Returns

The RedirectToPageResult.

Applies to

RedirectToPage(String)

Source:
PageModel.cs
Source:
PageModel.cs

Redirects (Status302Found) to the specified pageName.

public:
 virtual Microsoft::AspNetCore::Mvc::RedirectToPageResult ^ RedirectToPage(System::String ^ pageName);
public virtual Microsoft.AspNetCore.Mvc.RedirectToPageResult RedirectToPage (string 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

The name of the page.

Returns

The RedirectToPageResult.

Applies to

RedirectToPage(String, Object)

Source:
PageModel.cs
Source:
PageModel.cs

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

public:
 virtual Microsoft::AspNetCore::Mvc::RedirectToPageResult ^ RedirectToPage(System::String ^ pageName, System::Object ^ routeValues);
public virtual Microsoft.AspNetCore.Mvc.RedirectToPageResult RedirectToPage (string pageName, object 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

The name of the page.

routeValues
Object

The parameters for a route.

Returns

The RedirectToPageResult.

Applies to

RedirectToPage(String, String)

Source:
PageModel.cs
Source:
PageModel.cs

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

public:
 virtual Microsoft::AspNetCore::Mvc::RedirectToPageResult ^ RedirectToPage(System::String ^ pageName, System::String ^ pageHandler);
public virtual Microsoft.AspNetCore.Mvc.RedirectToPageResult RedirectToPage (string pageName, string 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

The name of the page.

pageHandler
String

The page handler to redirect to.

Returns

The RedirectToPageResult.

Applies to

RedirectToPage(String, String, Object)

Source:
PageModel.cs
Source:
PageModel.cs

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

public:
 virtual Microsoft::AspNetCore::Mvc::RedirectToPageResult ^ RedirectToPage(System::String ^ pageName, System::String ^ pageHandler, System::Object ^ routeValues);
public virtual Microsoft.AspNetCore.Mvc.RedirectToPageResult RedirectToPage (string pageName, string pageHandler, object 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

The name of the page.

pageHandler
String

The page handler to redirect to.

routeValues
Object

The parameters for a route.

Returns

The RedirectToPageResult.

Applies to

RedirectToPage(String, String, String)

Source:
PageModel.cs
Source:
PageModel.cs

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

public:
 virtual Microsoft::AspNetCore::Mvc::RedirectToPageResult ^ RedirectToPage(System::String ^ pageName, System::String ^ pageHandler, System::String ^ fragment);
public virtual Microsoft.AspNetCore.Mvc.RedirectToPageResult RedirectToPage (string pageName, string pageHandler, string 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

The name of the page.

pageHandler
String

The page handler to redirect to.

fragment
String

The fragment to add to the URL.

Returns

The RedirectToPageResult.

Applies to

RedirectToPage(String, String, Object, String)

Source:
PageModel.cs
Source:
PageModel.cs

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

public:
 virtual Microsoft::AspNetCore::Mvc::RedirectToPageResult ^ RedirectToPage(System::String ^ pageName, System::String ^ pageHandler, System::Object ^ routeValues, System::String ^ fragment);
public virtual Microsoft.AspNetCore.Mvc.RedirectToPageResult RedirectToPage (string pageName, string pageHandler, object routeValues, string 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

The name of the page.

pageHandler
String

The page handler to redirect to.

routeValues
Object

The parameters for a route.

fragment
String

The fragment to add to the URL.

Returns

The RedirectToPageResult.

Applies to