ScriptHelper RegisterClientScriptBlock Method (Page, Type, String, String, Boolean)Kentico 8.0 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.0.5239.26125)

Parameters

page
Type: OnlineSystem.Web.UI Page
The page object 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