您的位置:首页 > 运维架构 > 网站架构

RPM包搜索下载网站

2012-05-10 10:50 267 查看
<title>登录页面</title>
</head>
<body>
    <form id="form1" runat="server" method="post" action="index.aspx">
    <div>
        <asp:TextBox ID="Txtid" runat="server"></asp:TextBox>
        <asp:Button ID="btnpost" runat="server" Text="post传值" onclick="btnpost_Click"
            PostBackUrl="~/post/index.aspx" />
    </div>
    </form>
</body>

 

+++++===================

 protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            string id = Request.Form["Txtid"].ToString();
             LblMsseage.Text = "欢迎光临" + id;
        }
    }

 

 

get传值=================================

 

   <title>get传值</title>
</head>
<body>
    <form id="form1" runat="server" method="get">
    <div>
        <asp:TextBox ID="Txtid" runat="server"></asp:TextBox>
        <asp:Button ID="btnget" runat="server" Text="get传值"
        PostBackUrl="~/get/index.aspx"
          />
    </div>
    </form>
</body>

 

 protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            string id = Request.QueryString["Txtid"].ToString();
             LblMsseage.Text = "欢迎光临" + id;
        }
    }

 
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: