PersonalizationState.SetWebPartDirty Method (WebPart)

 

When overridden, marks a Web Parts control as having changed.

Namespace:   System.Web.UI.WebControls.WebParts
Assembly:  System.Web (in System.Web.dll)

public abstract void SetWebPartDirty(
	WebPart webPart
)

Parameters

webPart
Type: System.Web.UI.WebControls.WebParts.WebPart

The Web Parts control to be marked as having changed.

This is an abstract definition of the method used to indicate that a Web Parts control has changed (is "dirty"). The WebPart class exposes methods (which in turn call this method) that can be used by developers to mark a Web Parts control as "dirty," thus indicating the need to reserialize and save personalization state.

.NET Framework
Available since 2.0
Return to top
Show: