WebPart.SetPersonalizationDirty Method ()
Sets a flag indicating that personalization data has changed for the current WebPart control instance.
Assembly: System.Web (in System.Web.dll)
Normally the WebPartManager persists personalization changes on WebPart controls without a need for developers to call the method. But there are two cases in which developers do need to call this method. The first case is when control state data is changed during an HTTP GET request to a page. By default, changes to control state data during a GET request are not persisted (for security purposes). But the method provides a way to persist legitimate personalization changes to WebPart controls in this case.
The second case for calling the WebPart control has complex personalizable properties (such as a property that contains an ArrayList object), and control state data in those properties is personalized during a POST request, developers must call the method to ensure that the changes are persisted.method occurs during an HTTP POST request to a page. If a
Available since 2.0