November Happy Hour will be moved to Thursday December 5th.

Class PageExtensions

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.Commerce.Extensions
Assembly: EPiServer.Business.Commerce.dll
Version: 12.17.2
Syntax
public static class PageExtensions

Methods

RegisterClientScriptFile(Page, String, String)

Registers the client script file with this page using key and file relative path

Declaration
public static void RegisterClientScriptFile(this Page page, string key, string rootRelativePath)
Parameters
Type Name Description
System.Web.UI.Page page

The asp.net template page

System.String key

The unique key identifyer for the script. If an existing key is provided, nothing will be registered

System.String rootRelativePath

Relative path of the file

RegisterStyleSheetFile(Page, String, String)

Registers the CSS file to the header of this page, using key and file relative path. This function only works with server side header of HTML page. Otherwise it will do nothing.

Declaration
public static void RegisterStyleSheetFile(this Page page, string key, string rootRelativePath)
Parameters
Type Name Description
System.Web.UI.Page page

The asp.net template page

System.String key

The unique key identifyer for the CSS file. If an existing key is provided, nothing will be registered

System.String rootRelativePath

relative path of the file