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

Saves the values in an System.Web.UI.WebControls.WebParts.EditorPart control to the corresponding properties in the associated System.Web.UI.WebControls.WebParts.WebPart control.

Syntax

public abstract bool ApplyChanges ()

Returns

true if the action of saving values from the System.Web.UI.WebControls.WebParts.EditorPart control to the System.Web.UI.WebControls.WebParts.WebPart control is successful; otherwise (if an error occurs), false.

Remarks

The EditorPart.ApplyChanges 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 method's purpose is to save the values a user has entered into an System.Web.UI.WebControls.WebParts.EditorPart control to the corresponding properties in the System.Web.UI.WebControls.WebParts.WebPart control that is referenced in the EditorPart.WebPartToEdit property.

The EditorPart.ApplyChanges method is called when the user clicks a button representing an OK or an apply verb in the editing user interface (UI).

Requirements

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