WebPart.SetPersonalizationDirty Method (Control)
Assembly: System.Web (in system.web.dll)
public static void SetPersonalizationDirty ( Control control )
public static function SetPersonalizationDirty ( control : Control )
Not applicable.
Parameters
- control
The Control for which the personalization data has changed.
| Exception type | Condition |
|---|---|
| The object in the control parameter is a null reference (Nothing in Visual Basic). | |
| The control is not associated with a page. | |
| 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.
Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.