O'Reilly logo

ASP.NET 2.0: A Developer's Notebook by Wei-Meng Lee

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Let Users Edit Web Parts at Runtime

Note

Let users customize the look and feel of the Web Parts at your site.

In addition to giving users the power to move Web Parts around on your portal pages, you can empower them to change the appearance of the Web Parts themselves. In this lab, you will learn how to use the EditorPart controls (AppearanceEditorPart, BehaviorEditorPart, LayoutEditorPart, and PropertyGridEditorPart) to allow users to change the look and feel of their Web Parts.

Here is a quick overview of the EditorPart controls you'll use in this lab:

AppearanceEditorPart

Provides an editor control that enables end users to edit several user interface properties (such as title, width, and height) on a Web Part control

BehaviorEditorPart

Provides an editor control that enables end users to edit several user interface properties (such as the display of the Edit, Close, and Minimize buttons) on a Web Part control

LayoutEditorPart

Provides an editor control that enables end users to edit several layout-oriented user interface properties on a Web Part control

PropertyGridEditorPart

Provides an editor control that enables end users to edit custom properties on a Web Part control

How do I do that?

In this lab, you will learn how to let users change the look and behavior of every Web Part on the page. You will add an EditorZone control to the page to contain the four EditorPart controls: AppearanceEditorPart, BehaviorEditorPart, LayoutEditorPart, and PropertyGridEditorPart. These ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required