ASP.NET HTML 控件 Panel
asp.net html 控件 panel
<script runat="server">
sub page_load(sender as object, e as eventargs)
if check1.checked then
panel1.visible=false
else
panel1.visible=true
end if
end sub
</script>
<!doctype html>
<html>
<body>
<form runat="server">
<asp:panel id="panel1"
runat="server" backcolor="#ff0000"
height="100px" width="100px">
hello world!
</asp:panel>
<asp:checkbox id="check1"
text="hide panel control"
runat="server"/>
<br><br>
<asp:button text="reload" runat="server" />
</form>
</body>
</html>
sub page_load(sender as object, e as eventargs)
if check1.checked then
panel1.visible=false
else
panel1.visible=true
end if
end sub
</script>
<!doctype html>
<html>
<body>
<form runat="server">
<asp:panel id="panel1"
runat="server" backcolor="#ff0000"
height="100px" width="100px">
hello world!
</asp:panel>
<asp:checkbox id="check1"
text="hide panel control"
runat="server"/>
<br><br>
<asp:button text="reload" runat="server" />
</form>
</body>
</html>
相关文章
- ASP.NET Web Pages 布局
- ASP.NET Web Pages 类参考手册
- ASP.NET Razor C# 逻辑
- ASP.NET MVC 文件夹
- ASP.NET MVC 页面和布局
- ASP.NET 服务器控件
- ASP.NET CompareValidator 控件
- ASP.NET CheckBox 控件
- ASP.NET DropDownList 控件
- ASP.NET Label 控件
- ASP.NET Literal 控件
- ASP.NET RadioButtonList 控件
- ASP.NET Table 控件
- WebSecurity CurrentUserName 属性
- WebSecurity GeneratePasswordResetToken 方法
- HTML Anchor
- HTML Image 2
- HTML InputHidden
- HTML Textarea
- ASP.NET HTML 控件 Calendar