| ScriptHelperRegisterClientScriptBlock Method (Control, 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.HelpersAssembly: CMS.Helpers (in CMS.Helpers.dll) Version: 9.0.0
Syntaxpublic static void RegisterClientScriptBlock(
	Control control,
	Type type,
	string key,
	string script,
	bool addScriptTags = false
)
Parameters
- control
 - Type: System.Web.UIControl
The control 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