SyncChanges Method

The SyncChanges method of the CustomPropertyToolPart class is called after the ApplyChanges method has successfully applied all property changes to the instantiated web part on the server to allow a refresh of the tool parts displayed in the tool pane.

Remarks

The SyncChanges method is invoked only from the properties view of the tool pane.

The SyncChanges method causes the properties view to retrieve and display the latest property values, instead of populating them from the viewstate. This may be useful when a Web Part has directly modified a property displayed in the tool pane, for example.

You should also call the SyncChanges method from within the GetToolParts method of the WebPart class when using CustomPropertyToolPart objects.

Requirements

Platforms: Microsoft Windows Server 2003

Security: Code Access Security

ApplyChanges Method