View.Deactivate Event

Occurs when the current active View control becomes inactive.

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

public:
event EventHandler^ Deactivate {
	void add (EventHandler^ value);
	void remove (EventHandler^ value);
}
/** @event */
public void add_Deactivate (EventHandler value)

/** @event */
public void remove_Deactivate (EventHandler value)

In JScript, you can handle the events defined by a class, but you cannot define your own.
Not applicable.

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.

Windows 98, Windows Server 2000 SP4, 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.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show: