ScriptHelper RegisterClientScriptBlock Method (Control, Type, String, String, Boolean)Kentico 8.1 API Reference
Registers a client script block for AJAX and adds the script block to the page, optionally enclosing it in script tags.

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 8.0.0.0 (8.1.5347.20411)

Parameters

control
Type: OnlineSystem.Web.UI Control
The control that is registering the client script block
type
Type: OnlineSystem Type
The type of the client script block
key
Type: OnlineSystem String
A unique identifier for the script block
script
Type: OnlineSystem String
The script
addScriptTags (Optional)
Type: OnlineSystem Boolean
True to enclose the script block in script and /script tags, otherwise false
See Also