AdvantageCMS.Core.Common.BaseClasses Namespace
Advantage CSP

Helper..::..RegisterGlobalScript Method

Registers global javascript dynamically. Can be used to register scripts from within Postback.

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

Syntax


public static void RegisterGlobalScript(
	string uniqueName,
	string scriptIn,
	Page currentPage
)

Parameters

uniqueName
Type: String
Unique name for the script to ensure it is only registered once.
scriptIn
Type: String
currentPage
Type: Page
The current page.