Class PageExtensions

Extension methods for the System.Web.UI.Page class.

Inheritance
System.Object
PageExtensions
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Shell.Web.UI
Assembly: EPiServer.Shell.dll
Version: 8.11.0
Syntax
public static class PageExtensions

Methods

ActionUrl(Page, Object)

Creates an url to an action.

Declaration
public static string ActionUrl(this Page page, object routeValues)
Parameters
Type Name Description
System.Web.UI.Page page

The System.Web.UI.Page to add this method to.

System.Object routeValues

The route values needed to identify the route to the action.

Returns
Type Description
System.String

The html for a link to the specified action

ActionUrl(Page, String, String, String)

Creates an url to an action.

Declaration
public static string ActionUrl(this Page page, string moduleName, string controllerName, string action)
Parameters
Type Name Description
System.Web.UI.Page page

The System.Web.UI.Page to add this method to.

System.String moduleName

Name of the module.

System.String controllerName

Name of the controller.

System.String action

The action to execute.

Returns
Type Description
System.String

The html for a link to the specified action

ActionUrl(Page, String, String, String, String, String)

Creates an url to an action.

Declaration
public static string ActionUrl(this Page page, string moduleName, string controllerName, string action, string protocol, string host)
Parameters
Type Name Description
System.Web.UI.Page page

The System.Web.UI.Page to add this method to.

System.String moduleName

Name of the module.

System.String controllerName

Name of the controller.

System.String action

The action to execute.

System.String protocol

The protocol that should be used for the url.

System.String host

The host that should be used for the url.

Returns
Type Description
System.String

The html for a link to the specified action

ActionUrl(Page, String, String, String, Uri)

Creates an url to an action.

Declaration
public static string ActionUrl(this Page page, string moduleName, string controllerName, string action, Uri baseUri)
Parameters
Type Name Description
System.Web.UI.Page page

The System.Web.UI.Page to add this method to.

System.String moduleName

Name of the module.

System.String controllerName

Name of the controller.

System.String action

The action to execute.

System.Uri baseUri

The base URL.

Returns
Type Description
System.String

The html for a link to the specified action