This documentation is archived and is not being maintained.

WebPartManager.DisplayModeChanged Event

Note: This event is new in the .NET Framework version 2.0.

Occurs after the current display mode on a Web Parts page has changed.

Namespace: System.Web.UI.WebControls.WebParts
Assembly: System.Web (in system.web.dll)

public event WebPartDisplayModeEventHandler DisplayModeChanged
/** @event */
public void add_DisplayModeChanged (WebPartDisplayModeEventHandler value)

/** @event */
public void remove_DisplayModeChanged (WebPartDisplayModeEventHandler value)

JScript supports the use of events, but not the declaration of new ones.

Display modes are an integral part of Web Parts applications. When users switch to a different display mode on a Web page, the page will often take on a very different appearance, depending on the purpose of the new display mode. After a display mode has changed, you might want to make certain changes in the user interface (UI), such as hiding or showing certain controls, changing the appearance of selected UI elements, and so on.

NoteNote

For more information on display modes, see Web Parts Page Display Modes. For more information on consuming events, see How to: Consume Events in a Web Forms Application.

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.

.NET Framework

Supported in: 2.0
Show: