Click or drag to resize
ScriptHelperRegisterClientScriptInclude Method
Registers the client script for AJAX and then adds a script file reference to the page. Allows to explicitly disable script minification.

Namespace: CMS.Base.Web.UI
Assembly: CMS.Base.Web.UI (in CMS.Base.Web.UI.dll) Version: 11.0.0
Syntax
C#
public static void RegisterClientScriptInclude(
	PageElement element,
	Type type,
	string key,
	string url,
	bool minify = true
)

Parameters

element
Type: CMS.Base.Web.UIPageElement
Page element
type
Type: SystemType
The type of the client script block
key
Type: SystemString
A unique identifier for the script block
url
Type: SystemString
The URL of the script file
minify (Optional)
Type: SystemBoolean
True if minification should be used, otherwise false
See Also