Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

WebPartManager.Visible Property

Gets a value that enables child controls to be visible.

Namespace:  System.Web.UI.WebControls.WebParts
Assembly:  System.Web (in System.Web.dll)

[BindableAttribute(false)]
[BrowsableAttribute(false)]
public override bool Visible { get; set; }

Property Value

Type: System.Boolean
A Boolean value that indicates whether a WebPartManager control and its child controls are visible. true in all cases.

ExceptionCondition
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.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0
Show:
© 2015 Microsoft