ScriptHelperRegisterStartupScript Method (Control, Type, String, String, Boolean) |
Registers the startup script.
Namespace: CMS.Base.Web.UIAssembly: CMS.Base.Web.UI (in CMS.Base.Web.UI.dll) Version: 12.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