
定义和用法
Visible 属性获取或设置一个值,该值指示控件是否呈现在页上。
语法
<asp:
webcontrol id="
id" Visible="True|False" runat="server"
/>
实例
下面的实例代码设置按钮不可见:
<form runat="server"> <asp:Button id="button1" Text="Submit" Visible="False" runat="server" /> </form>
