Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

WebPart.SetPersonalizationDirty Method (Control)

Sets a flag indicating that personalization data has changed for the specified server control that resides in a WebPartZoneBase zone.

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

public static void SetPersonalizationDirty(
	Control control
)

Parameters

control
Type: System.Web.UI.Control

The Control for which the personalization data has changed.

ExceptionCondition
ArgumentNullException

The object in the control parameter is null.

ArgumentException

The control is not associated with a page.

InvalidOperationException

The page associated with the control does not have a WebPartManager.

ArgumentException

The control derives from WebPart. Controls that derive from WebPart should use the protected SetPersonalizationDirty method instead.

The WebPart.SetPersonalizationDirty method has the same purpose as the WebPart.SetPersonalizationDirty() method, which is to set a flag indicating that control state data has been changed (personalized) on a server control during an HTTP GET request. The difference between these methods is that the WebPart.SetPersonalizationDirty method is used for server controls that do not inherit from the WebPart class, but are placed within WebPartZoneBase zones to participate in Web Parts applications.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0
Show:
© 2015 Microsoft