The View control is a container for a group of controls. A View control must always be contained within a MultiView control. Only one View control at a time can be defined as the active view within a MultiView control.
The ActiveViewIndex property specifies the active View control within the Views collection of a MultiView control. The active view control is rendered to the client, as long as the containing MultiView control is visible. Use the Visible property to determine whether a View control and its child controls are visible on the page and rendered to the client.
A View control can contain controls of any type, including other MultiView controls. A View control does not support any style properties. To apply styles to a View control, add one or more Panel controls to the View control.
The View class provides the Activate and Deactivate events. The Activate event is raised when the current View control becomes the active view. This occurs 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 Activate event is raised for View2 and the Deactivate event is raised for View1.
To allow users to navigate between multiple View controls within a MultiView control, you can add a LinkButton or Button control to each View control. Set the LinkButton or Button control's CommandName property to the ID of the View control to navigate to. For a code example, see ActiveViewChanged.
For more information on manipulating View controls within a MultiView control, see the MultiView topic.