Friday, May 2, 2008

Disabling webpart personalization

The webpart personalization can be disabled using:

1) Set Enabled property of the Webpart manater personalization provider:
WebPartManager1.Personalization.Enabled = false;

2) Disable it while declaring the webpart manager in the .aspx page
<asp:webpartmanager runat="server" id="wpmgr1"
personalization-enabled="false" />

No comments: