Export (0) Print
Expand All

View.Deactivate Event

Occurs when the current active View control becomes inactive.

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

member Deactivate : IEvent<EventHandler,
    EventArgs>
<asp:View OnDeactivate="EventHandler" />

The Deactivate event is raised when the current active View control becomes inactive. A View control becomes inactive when the value of the ActiveViewIndex property changes or the SetActiveView method is called to specify a different View control. For example, if View1 is the active view within a MultiView control, when the ActiveViewIndex property changes to specify View2, the Deactivate event is raised for View1 and the Activate event is raised for View2.

The following code example demonstrates how to specify and code an event handler for the Deactivate event of a View control. When the active view changes, a message is displayed to the user specifying the View control that raised the Activate event and the View control that raised the Deactivate event.

No code example is currently available or this language may not be supported.

.NET Framework

Supported in: 4.5, 4, 3.5, 3.0, 2.0

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft