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: 11.0.0
Syntax
C#
protected void SetSaveJavascript(
	string javaScript
)

Parameters

javaScript
Type: SystemString
JavaScript to add to the Save and Close button
Exceptions
ExceptionCondition
InvalidOperationExceptionUsed 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