ASP NET05_ASP NET服务器端控件.pptVIP

  • 18
  • 0
  • 约1.06万字
  • 约 54页
  • 2020-01-18 发布于辽宁
  • 举报
ListBox 实例 5.3.4 容器控件 有两种类型的容器控件: 面板控件(Panel) – 面板控件可以作为一组控件的容器,其常用功能就是显示或隐藏一组控件。 占位控件(PlaceHolder) – 存储动态添加到网页上的服务器控件的容器。 当页面初次被载入时,Panel控件以及Panel控件内的全部控件都为隐藏。当用户单击Button时,则Panel控件及其内部的控件都为可见。 设置Panel控件的HTML代码如下。 form id=form1 runat=server asp:Button ID=Button1 runat=server Text=Show / asp:Panel ID=Panel1 runat=server Visible=False br / The controls in a Panel are in follows. br / asp:Label ID=Label1 runat=server Text=Hello/asp:Label asp:TextBox ID=TextBox1 runat=server/asp:TextBox /asp:Panel /form protected void Button1_Click(object sender, EventArgs e) { Panel1

文档评论(0)

1亿VIP精品文档

相关文档