ScriptHelperRegisterStartupScript Method (Page, Type, String, String, Boolean) |
Registers the startup script.
Namespace: CMS.Base.Web.UIAssembly: CMS.Base.Web.UI (in CMS.Base.Web.UI.dll) Version: 10.0.0
Syntax public static void RegisterStartupScript(
Page page,
Type type,
string key,
string script,
bool addScriptTags = false
)
Parameters
- page
- Type: System.Web.UIPage
Page - 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