# Limiting Postbacks When Updating Bound Data

This topic explains how you can use Spread for ASP.NET to limit postbacks when updating the bound data. Learn more in documentation.

## Content

If your data set is getting lost when you click the **Update** button, make sure that you have code in your page load event so that you only re-create the bound data when you are loading for the first time and not overwriting it on each post back.

## Using Code

Use the **IsPostBack** property.

## Example

In this example, the if-endif structure surrounding the [DataBind](/spreadnet/api/latest/online-asp/FarPoint.Web.Spread/FarPoint.Web.Spread.FpSpread.DataBind.html) method restricts the method from being run on each post back.

```csharp
if !(Page.IsPostBack)
    {
        ... other code ...
        FpSpread1.DataBind();
     }
```

```vbnet
If Not Page.IsPostBack Then
        ... other code ...
        FpSpread1.DataBind()
End If
```