WebPartPersonalization.CopyPersonalizationState Method
Assembly: System.Web (in system.web.dll)
protected public: virtual void CopyPersonalizationState ( WebPart^ webPartA, WebPart^ webPartB )
protected void CopyPersonalizationState ( WebPart webPartA, WebPart webPartB )
protected internal function CopyPersonalizationState ( webPartA : WebPart, webPartB : WebPart )
Parameters
- webPartA
The Web Parts control supplying the personalization data.
- webPartB
The Web Parts control receiving the personalization data.
This method extracts the personalization state from webPartA and applies it to webPartB. This method assumes that webPartA and webPartB are the same type. If the Web Parts controls are GenericWebPart controls, the method copies the personalization state from the child control wrapped in webPartA to the child control wrapped in webPartB.
As part of the copy operation, webPartB is marked as "dirty".
Windows 98, Windows 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 .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.
Reference
WebPartPersonalization ClassWebPartPersonalization Members
System.Web.UI.WebControls.WebParts Namespace
WebPartPersonalization Class
Other Resources
ASP.NET Web Parts PagesWeb Parts Personalization Overview
Walkthrough: Implementing Web Parts Personalization with a User Control
Web Parts Personalization