Read this page in your own language

Wednesday, December 30, 2009

How to: Disable Web Parts Personalization

Web Parts personalization is enabled by default on Web Parts pages. However, you might want to disable it in certain cases. For example, you might have a website where many pages use Web Parts controls and personalization. There might be certain pages where you want the benefits of Web Parts features such as modular layout and the ability to create connections between static Web Parts controls, but you also want the pages to remain read-only, meaning that users cannot personalize or modify them. In such cases, you can disable personalization using the WebPartManager control on a Web Parts page.

Disabling Web Parts Personalization

To disable Web Parts personalization for a page

  1. Open the Web Parts .aspx page and locate the element.

  2. Add the personalization-enabled attribute to the false, as in the following code example. element, and set its value to

     personalization-enabled="false" />

No comments: