AdvantageCMS.Core.Common.BaseClasses Namespace
Build With Advantage

ResourceRegister Methods

The ResourceRegister type exposes the following members.

Methods


  Name Description
Public method Static member EmbeddedResourceExists
Determines whether an embedded resource with the specified name exists in the assembly containing the given type.
Public method Static member RegisterCss
Registers an external CSS stylesheet on the page by URL, injecting it via script or as an HtmlLink in the header.
Public method Static member RegisterEmbeddedCss
Registers an embedded CSS web resource from the specified assembly type.
Public method Static member RegisterEmbeddedJs
Registers an embedded JavaScript web resource from the specified assembly type.
Public method Static member RegisterInlineCss
Registers an inline CSS style block on the page. Supports raw CSS or CSS wrapped in style tags with attributes.
Public method Static member RegisterInlineJs
Registers an inline JavaScript block on the page.
Public method Static member RegisterJs
Registers an external JavaScript file on the page by URL.
Public method Static member RegisterScript
Registers a startup script on the page, automatically injecting CSP nonce and using ScriptManager when available.