AdvantageCMS.Core.Common.BaseClasses Namespace
Build With Advantage

ResourceRegister..::..RegisterInlineCss Method

Registers an inline CSS style block on the page. Supports raw CSS or CSS wrapped in style tags with attributes.

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

Syntax


public static void RegisterInlineCss(
	Page page,
	Control ctrl,
	string key,
	string css
)

Parameters

page
Type: Page
The current page.
ctrl
Type: Control
The control requesting the CSS registration.
key
Type: String
A unique key to prevent duplicate registrations.
css
Type: String
The CSS content, optionally wrapped in style tags.