System.Web.UI.WebControls.WebParts.EditorPart.SyncChanges Method

Retrieves the property values from a System.Web.UI.WebControls.WebParts.WebPart control for its associated System.Web.UI.WebControls.WebParts.EditorPart control.

Syntax

public abstract void SyncChanges ()

Remarks

The EditorPart.SyncChanges method is a critical method on an System.Web.UI.WebControls.WebParts.EditorPart control. It is defined as an abstract method in the System.Web.UI.WebControls.WebParts.EditorPart class, and must be implemented by inherited controls. The purpose of the method is to retrieve the current values from the System.Web.UI.WebControls.WebParts.WebPart control referenced in the EditorPart.WebPartToEdit property, and update the fields in the System.Web.UI.WebControls.WebParts.EditorPart control with those values so a user can edit them.

The EditorPart.SyncChanges method is called whenever the values in the associated System.Web.UI.WebControls.WebParts.WebPart control might have changed. For every System.Web.UI.WebControls.WebParts.EditorPart control, the System.Web.UI.WebControls.WebParts.EditorZoneBase zone that contains the control calls the EditorPart.SyncChanges method immediately after calling the EditorPart.ApplyChanges method, so that the values in the System.Web.UI.WebControls.WebParts.EditorPart control are always synchronized with the values in the associated System.Web.UI.WebControls.WebParts.WebPart control. Another case where the EditorPart.SyncChanges method is called is when a System.Web.UI.WebControls.WebParts.WebPart control is entering edit mode.

Note:

The EditorPart.SyncChanges method is not called after the EditorPart.ApplyChanges method if that method returns false, because in that case, an error has occurred.

Requirements

Namespace: System.Web.UI.WebControls.WebParts
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0