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

