ControllerBase.RedirectToPage Method

Definition

Overloads

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.

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

Source:
ControllerBase.cs
Source:
ControllerBase.cs

Redirects (Status302Found) to the specified pageName.

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

Attributes

Applies to

RedirectToPage(String, Object)

Source:
ControllerBase.cs
Source:
ControllerBase.cs

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

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

Attributes

Applies to

RedirectToPage(String, String)

Source:
ControllerBase.cs
Source:
ControllerBase.cs

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

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

Attributes

Applies to

RedirectToPage(String, String, Object)

Source:
ControllerBase.cs
Source:
ControllerBase.cs

Redirects (Status302Found) to the specified pageName.

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

Attributes

Applies to

RedirectToPage(String, String, String)

Source:
ControllerBase.cs
Source:
ControllerBase.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);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.RedirectToPageResult RedirectToPage (string pageName, string pageHandler, string fragment);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.RedirectToPageResult RedirectToPage (string pageName, string? pageHandler, string? fragment);
[<Microsoft.AspNetCore.Mvc.NonAction>]
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.

Attributes

Applies to

RedirectToPage(String, String, Object, String)

Source:
ControllerBase.cs
Source:
ControllerBase.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);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.RedirectToPageResult RedirectToPage (string pageName, string pageHandler, object routeValues, string fragment);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.RedirectToPageResult RedirectToPage (string pageName, string? pageHandler, object? routeValues, string? fragment);
[<Microsoft.AspNetCore.Mvc.NonAction>]
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.

Attributes

Applies to