Monday, August 30, 2010

Reset the state of a page containing web parts

In a page containing web parts, you can tweak the location and appearance of the web parts. Then you may want to clean the mess and reset the state of the web parts to the original one. You can do so by running this code:

PersonalizationAdministration.ResetAllState(PersonalizationScope.User);

No comments:

Post a Comment