WebPartManager::Visible Property
Gets a value that enables child controls to be visible.
Assembly: System.Web (in System.Web.dll)
[BindableAttribute(false)] [BrowsableAttribute(false)] public: virtual property bool Visible { bool get () override; void set (bool value) override; }
<asp:WebPartManager Visible="True|False" />
Property Value
Type: System::BooleanA Boolean value that indicates whether a WebPartManager control and its child controls are visible. true in all cases.
| Exception | Condition |
|---|---|
| NotSupportedException | An attempt was made to assign a value to the property. |
The WebPartManager control overrides the base Control::Visible property to always return a value of true for the Visible property. Even though the WebPartManager control itself is not visible, the Visible property needs to be set to true so that all its child controls are visible by default.
If you try to set the value of the Visible property, it always generates an error because the WebPartManager control has overridden the base property behavior and prevents assigning any value to the property.
This property is not bindable in visual designers, but is bindable at runtime. For more information, see BindableAttribute.
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.