System.Web.UI.NonVisualControlAttribute Class

Defines the attribute that indicates whether a control is treated as a visual or non-visual control during design time. This class cannot be inherited.

See Also: NonVisualControlAttribute Members

Syntax

public sealed class NonVisualControlAttribute : Attribute

Remarks

The System.Web.UI.NonVisualControlAttribute attribute is applied to controls that are not rendered to the client, such as data source controls and the System.Web.UI.WebControls.WebParts.WebPartManager control. During design time, a page developer might decide to hide all non-visual controls. The designer would mark as invisible all of the controls with the System.Web.UI.NonVisualControlAttribute attribute set to true.

Examples of controls that employ the System.Web.UI.NonVisualControlAttribute attribute are System.Web.UI.DataSourceControl, System.Web.UI.HierarchicalDataSourceControl, System.Web.UI.WebControls.HiddenField, and System.Web.UI.WebControls.WebParts.WebPartManager.

Requirements

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