Click or drag to resize
ScriptHelperRegisterSaveShortcutT Method (T, String, String)
Registers a control which when invoked via keyboard shortcut saves the document.

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 8.2.23
Syntax
C#
public static void RegisterSaveShortcut<T>(
	T saveControl,
	string argument,
	string customScript
)
where T : Control, IPostBackEventHandler

Parameters

saveControl
Type: T
A control which when invoked saves the document
argument
Type: SystemString
A string of optional arguments to pass to the control that processes the postback
customScript
Type: SystemString
Custom java-script to execute

Type Parameters

T
A control that implements the IPostBackEventHandler interface
See Also