AdvantageCMS.Core.Common.BaseClasses Namespace
Build With Advantage

ResourceRegister..::..RegisterEmbeddedJs Method

Registers an embedded JavaScript web resource from the specified assembly type.

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

Syntax


public static void RegisterEmbeddedJs(
	Page page,
	Control ctrl,
	Type ctrlTypeFromDll,
	string resourceName
)

Parameters

page
Type: Page
The current page.
ctrl
Type: Control
The control requesting the script registration.
ctrlTypeFromDll
Type: Type
A type in the assembly containing the embedded resource.
resourceName
Type: String
The fully qualified embedded resource name.