ScriptHelperRegisterStartupScript Method (Control, Type, String, String, Boolean) |
Registers the startup script.
Namespace: CMS.HelpersAssembly: CMS.Helpers (in CMS.Helpers.dll) Version: 9.0.0
Syntaxpublic 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