Click or drag to resize
ScriptHelperRegisterClientScriptBlock Method (Page, Type, String, String, Boolean)
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.2.23
Syntax
C#
public static void RegisterClientScriptBlock(
	Page page,
	Type type,
	string key,
	string script,
	bool addScriptTags = false
)

Parameters

page
Type: System.Web.UIPage
The page object that is registering the client script block
type
Type: SystemType
The type of the client script block
key
Type: SystemString
A unique identifier for the script block
script
Type: SystemString
The script
addScriptTags (Optional)
Type: SystemBoolean
True to enclose the script block in script and /script tags, otherwise false
See Also