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