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

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
public virtual bool Visible {get; set;}
public: __property virtual bool get_Visible();
public: __property virtual void set_Visible(bool);
public function get Visible() : Boolean;
public function set Visible(Boolean);

Property Value

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


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.


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

See Also

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

© 2015 Microsoft