AdvantageCMS.Core.Common.BaseClasses Namespace
Build With Advantage

ResourceRegister..::..RegisterJs Method

Registers an external JavaScript file on the page by URL.

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

Syntax


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

Parameters

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