System.Web.UI.WebControls.View.Visible Property

Gets or sets a value that indicates whether the System.Web.UI.WebControls.View control is visible.

Syntax

public override bool Visible { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

Use the View.Visible property to determine whether the current System.Web.UI.WebControls.View control is visible and rendered to the client. For a System.Web.UI.WebControls.View control to be visible on the rendered page, it must be the active view in its containing System.Web.UI.WebControls.MultiView control, and the containing System.Web.UI.WebControls.MultiView control must be visible. If the containing System.Web.UI.WebControls.MultiView control is not visible on the page, or if the System.Web.UI.WebControls.View control is not the active view, then the System.Web.UI.WebControls.View control and its child controls are not rendered.

Note:

The View.Visible property is set internally based on the visibility and active view for the containing parent control. If you set this property at run time, an InvalidOperationException exception is thrown. If you set the View.Visible property at design time, any changes to the property are ignored.

Requirements

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