Click or drag to resize
CMSModalDesignPageSetSaveJavascript Method
Sets JavaScript to a Save and Close button. This method can only be called when master page implements ICMSModalMasterPage.

Namespace: CMS.UIControls
Assembly: CMS.UIControls (in CMS.UIControls.dll) Version: 8.2.23
Syntax
C#
protected void SetSaveJavascript(
	string javaScript
)

Parameters

javaScript
Type: SystemString
JavaScript to add to the Save and Close button
Exceptions
ExceptionCondition
GeneralCMSExceptionUsed master page is not ICMSModalMasterPage
Remarks
By using this method, the master page will also display 'Save and Close' button in the bottom of the page.
See Also