Gets the object that contains the values that were originally retrieved from the data source.
Assembly: System.Web.Extensions (in System.Web.Extensions.dll)
You can use the property to check the original values against the current values in the data source and to cancel the update operation or take other action.
The property contains values for only the properties that are persisted in view state in the Web page. A property is persisted under these circumstances:
When it is displayed in a data-bound control.
If the UpdateCheck property is set to Never and the value is not displayed in a data-bound control, the value is not stored in the Web page. In that case, it cannot be assigned to the property.
The following example shows an event handler for the Updating event. The example shows how to compare properties from the property and the NewObject property to determine whether the value in the Category property has changed. If so, the CategoryChanged property of the object in the NewObject property is set to true.
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.