An ASP.NET Web Parts page can enter several different display modes. A display mode is a special state that applies to an entire page, where certain user interface (UI) elements are visible and enabled, while others are invisible and disabled. Display modes enable end users to perform certain tasks to modify or personalize a page, such as editing Web Parts controls, changing the layout of a page, or adding new controls from a catalog of available controls.
How Web Parts Display Modes Work
A page can be in only one display mode at a time. The
Typically, you provide a UI that enables users to switch among display modes as needed. You can change a page's display mode programmatically, using the
There are five standard display modes in the Web Parts control set: browse (the normal mode in which an end user views a Web page), design, edit, catalog, and connect. Each of these display modes is derived from the
Display mode | Description |
---|---|
|
Displays Web Parts controls and UI elements in the normal mode in which end users view a page. |
|
Displays zone UI and enables users to drag Web Parts controls to change the layout of a page. |
|
Displays special editing UI elements and enables end users to edit the controls on a page. Allows dragging of controls, just as design mode does. |
|
Displays special catalog UI elements and enables end users to add and remove page controls. Allows dragging of controls, just as design mode does. |
|
Displays special connections UI elements and enables end users to connect Web Parts controls. |
See Also
Tasks
Walkthrough: Creating a Web Parts PageWalkthrough: Changing Display Modes on a Web Parts Page