Click or drag to resize
AceoffixCtrlJsFunction_BeforeDocumentSaved Property
Sets a JavaScript function for BeforeDocumentSaved event.

Namespace: Aceoffix
Assembly: Aceoffix (in Aceoffix.dll) Version: 5.0.0.1
Syntax
public string JsFunction_BeforeDocumentSaved { get; set; }

Property Value

Type: String
The property has no default value.
Remarks

This event is triggered at the client-side before the document is saved.

If you want to capture this event, You should define a JavaScript function in the aspx file of current page.

In the JavaScript function, you can return false to prevent from saving the document.

Examples

The following code example shows how to use the JsFunction_BeforeDocumentSaved property.

AceoffixCtrl1.JsFunction_BeforeDocumentSaved = "BeforeDocumentSaved()";

And then, you should define the BeforeDocumentSaved() JavaScript function in the aspx file of current page.

JavaScript
<script language="javascript" type="text/javascript">
    function BeforeDocumentSaved() {
        // Add your code here.
        return true; //Continue to save document.
    }
</script>
See Also