# UpdatePostBackData

Use the UpdatePostBackData method to save the changes to the postback data. Learn its syntax and parameters in documentation.

## Content

Saves the changes to the postback data.

## Syntax

[JavaScript]

```javascript
FpSpread1.UpdatePostbackData();
```

## Parameters

None

## Return Type

None

## Remarks

Some changes to the display (either by code or by user interaction) can be lost on Update because those changes are not made to the postback data. This method makes those updates to the postback data. This method does not cause a postback to occur. To have those changes applied to the server, use the [Update](/spreadnet/docs/latest/online-asp/overview/spweb-clientscriptref/clientscript-members/clientscript-allmeths/CSSR-Update) method.

## 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 onPostback() {
       FpSpread1.UpdatePostbackData(); // update the postback data
   }
</script>
```

## See Also

[Update](/spreadnet/docs/latest/online-asp/overview/spweb-clientscriptref/clientscript-members/clientscript-allmeths/CSSR-Update)
[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)