# Update

Use the Update method to save the changes to the Spread object on the client back to the server. Learn its syntax and parameters in documentation.

## Content

Saves the changes to the Spread object on the client back to the server.

## Syntax

[JavaScript]

```javascript
FpSpread1.Update();
```

## Parameters

None

## Return Type

None

## Remarks

This method is similar to pressing the Update button on the command bar. This method causes a postback to occur. When this method is called, the Update event is raised on the server.

## Example

This is a sample that contains the method. On the client side, the script that contains the method would look like this:

```javascript
<script type="text/javascript">
   function onUpdateButtonClick() {
       FpSpread1.Update();    // updated to server
   }
</script>
```

## See Also

[UpdatePostBackData](/spreadnet/docs/latest/online-asp/overview/spweb-clientscriptref/clientscript-members/clientscript-allmeths/CSSR-UpdatePostBackData)
[Cancel](/spreadnet/docs/latest/online-asp/overview/spweb-clientscriptref/clientscript-members/clientscript-allmeths/CSSR-Cancel)
[Scripting Members](/spreadnet/docs/latest/online-asp/overview/spweb-clientscriptref/clientscript-members)