Page.Visible Property
.NET Framework 3.0
Gets or sets a value indicating whether the Page object is rendered.
Namespace: System.Web.UI
Assembly: System.Web (in system.web.dll)
Page Members
System.Web.UI Namespace
Control
TemplateControl
UserControl
Assembly: System.Web (in system.web.dll)
/** @property */ public boolean get_Visible () /** @property */ public void set_Visible (boolean value)
public override function get Visible () : boolean public override function set Visible (value : boolean)
Not applicable.
Property Value
true if the Page is to be rendered; otherwise, false. The default is true.The following example sets the Visible property to false to hide the rendered content of a page. When this page is first requested, a data source is populated and displayed in the page. When a user clicks the button, the HideButton_Click event handler hides the entire rendered content of the page.
void HideButton_Click(Object sender, EventArgs er)
{
this.set_Visible(false);
} //HideButton_Click
Reference
Page ClassPage Members
System.Web.UI Namespace
Control
TemplateControl
UserControl
Other Resources
@ PageCommunity Additions
ADD
Show: