WebPartManager.OnDisplayModeChanged Method
.NET Framework 3.0
Raises the DisplayModeChanged event to indicate that the WebPartManager control has completed the process of switching from one display mode to another on a Web page.
Namespace: System.Web.UI.WebControls.WebParts
Assembly: System.Web (in system.web.dll)
Assembly: System.Web (in system.web.dll)
protected void OnDisplayModeChanged ( WebPartDisplayModeEventArgs e )
protected function OnDisplayModeChanged ( e : WebPartDisplayModeEventArgs )
Not applicable.
Parameters
- e
A WebPartDisplayModeEventArgs that contains event data associated with a changed display mode.
The OnDisplayModeChanged method in its base form simply raises the DisplayModeChanged event.
Notes to Inheritors: You can override the OnDisplayModeChanged method. For example, after a change of display mode, you might want to change something in the appearance of the user interface (UI), depending on which display mode is contained in the OldDisplayMode property. Or you might want to hide certain content, or display a certain control. When you override the method, you should normally call the base method as the last step of the overridden method, so that your custom code runs first, and the event is raised last, indicating that the mode change is complete.Windows 98, Windows Server 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 Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.Community Additions
ADD
Show: