zoukankan      html  css  js  c++  java
  • Pannel

    设计如图:

    打开源:

    <body>
        <form id="form1" runat="server">
        <div>
            <asp:Button ID="btnGetPanleNext" runat="server" Text="注册"
                onclick="btnGetPanleNext_Click" />
            <asp:Panel ID="PanleNext" runat="server">
                <asp:TextBox ID="txtUserName" runat="server"></asp:TextBox>
                <asp:TextBox ID="txtPassWrod" runat="server"></asp:TextBox>
                <asp:Button ID="btnSure" runat="server" Text="确定" onclick="btnSure_Click" />
            </asp:Panel>
           
        </div>
        <asp:Panel ID="panelMoreInfo" runat="server">
            你选择的方向:<asp:RadioButton ID="radioCSharp" runat="server" GroupName="Language" Text="C#" />
            <asp:RadioButton ID="radioJava" runat="server" GroupName="Language" Text="VB" />
        </asp:Panel>
        </form>
    </body>

    后置文件:

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                this.PanleNext.Visible = false;
                this.panelMoreInfo.Visible = false;
            }
        }

    双击注册

        protected void btnGetPanleNext_Click(object sender, EventArgs e)
        {
            this.PanleNext.Visible = true;
            this.panelMoreInfo.Visible = false;
        }

    双击确定
        protected void btnSure_Click(object sender, EventArgs e)
        {
            this.panelMoreInfo.Visible = true;
            this.PanleNext.Visible = false;
        }

  • 相关阅读:
    Xcode4快速Doxygen文档注释 — 简明图文教程
    iOS6 旋转
    echart 判断数据是否为空
    echart tootip使用技巧
    下拉菜单自动向上或向下弹起
    前后台数据交互
    打包代码
    echart 设计宽度为百分比时,div撑不开
    无缝滚动(小鹏写)
    内置对象-Request对象
  • 原文地址:https://www.cnblogs.com/scsuns520/p/1633451.html
Copyright © 2011-2022 走看看