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.HelpersAssembly: CMS.Helpers (in CMS.Helpers.dll) Version: 8.2.23
Syntax public static void RegisterClientScriptInclude(
PageElement element,
Type type,
string key,
string url,
bool minify = true
)
Parameters
- element
- Type: CMS.BasePageElement
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