Click or drag to resize
CMSModalPageSetCloseJavascript Method
Sets JavaScript to be processed when user clicks the Close button or the area around the modal window. 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 SetCloseJavascript(
	string javaScript
)

Parameters

javaScript
Type: SystemString
JavaScript to be processed when user clicks the Close button or the area around the modal window
Exceptions
ExceptionCondition
InvalidOperationExceptionUsed master page is not ICMSModalMasterPage
See Also