ASP.NET Visible Property

Definition and Usage

The Visible property gets or sets a value that indicates whether the server control is displayed on the page.

Example

The code in this example sets the button to be invisible:

<form runat="server">
<asp:Button id="button1" Text="Submit" Visible="False" runat="server" />
</form>

Example

Button Control with Visible Property Set