View.Visible Property
Assembly: System.Web (in system.web.dll)
public: virtual property bool Visible { bool get () override; void set (bool value) override; }
/** @property */ public boolean get_Visible () /** @property */ public void set_Visible (boolean value)
public override function get Visible () : boolean public override function set Visible (value : boolean)
Property Value
true if the View control is visible; otherwise, false. The default value is false.Use the Visible property to determine whether the current View control is visible and rendered to the client. For a View control to be visible on the rendered page, it must be the active view in its containing MultiView control, and the containing MultiView control must be visible. If the containing MultiView control is not visible on the page, or if the View control is not the active view, then the View control and its child controls are not rendered.
Note |
|---|
| The 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 Visible property at design time, any changes to the property are ignored. |
Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.
Note