Export (0) Print
Expand All

Control.Visible Property

Gets or sets a value that indicates whether a server control is rendered as UI on the page.

[Visual Basic]
Public Overridable Property Visible As Boolean
[C#]
public virtual bool Visible {get; set;}
[C++]
public: __property virtual bool get_Visible();
public: __property virtual void set_Visible(bool);
[JScript]
public function get Visible() : Boolean;
public function set Visible(Boolean);

Property Value

true if the control is visible on the page; otherwise false.

Remarks

If this property is false, the server control is not rendered. You should take this into account when organizing the lay out of your page.

Requirements

Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family

See Also

Control Class | Control Members | System.Web.UI Namespace

Show:
© 2014 Microsoft