Click or drag to resize
ScriptHelperRegisterStartupScript Method (Control, Type, String, String, Boolean)
Registers the startup script.

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 8.2.23
Syntax
C#
public static void RegisterStartupScript(
	Control control,
	Type type,
	string key,
	string script,
	bool addScriptTags = false
)

Parameters

control
Type: System.Web.UIControl
Control
type
Type: SystemType
Type
key
Type: SystemString
Key
script
Type: SystemString
Script
addScriptTags (Optional)
Type: SystemBoolean
True to enclose the script block in script and /script tags, otherwise false
See Also