AdvantageCMS.Core.Common.BaseClasses Namespace
Build With Advantage

ResourceRegister..::..RegisterCss Method

Registers an external CSS stylesheet on the page by URL, injecting it via script or as an HtmlLink in the header.

Namespace:  AdvantageCMS.Core.Utils
Assembly:  AdvantageCMS.Core (in AdvantageCMS.Core.dll)

Syntax


public static void RegisterCss(
	Page page,
	Control ctrl,
	string url,
	string key
)

Parameters

page
Type: Page
The current page.
ctrl
Type: Control
The control requesting the CSS registration.
url
Type: String
The URL of the CSS file.
key
Type: String
A unique key to prevent duplicate registrations.