System.Web.UI.WebControls.MultiView.GetActiveView Method

Returns the current active System.Web.UI.WebControls.View control within a System.Web.UI.WebControls.MultiView control.

Syntax

public View GetActiveView ()

Returns

A System.Web.UI.WebControls.View control that represents the active view within a System.Web.UI.WebControls.MultiView control.

Remarks

Use this method to return the System.Web.UI.WebControls.View control within a System.Web.UI.WebControls.MultiView control that is currently set as the active view. This method returns a System.Web.UI.WebControls.View control and therefore can be used to access the properties of the active view. For example, MultiView1.GetActiveView.ID returns the value of the System.Web.UI.Control.ID property of the current active view in MultiView1.

Alternately, you can use the MultiView.ActiveViewIndex property to get or set the zero-based index of the current active view in a System.Web.UI.WebControls.MultiView control. This property can be accessed either declaratively or programmatically.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0