首页 > 其他 > 详细

Request页面传值

时间:2014-03-14 16:25:06      阅读:406      评论:0      收藏:0      [点我收藏+]

  protected void Button1_Click(object sender, EventArgs e)
        {
            string a = Page.Request["ID"];
           Response.Redirect("dy.ascx?name=a");

          
        }

接收

 protected void Page_Load(object sender, EventArgs e)
        {
            Label1.Text = Request.QueryString["name"];

        }

或者

    protected void Button1_Click(object sender, EventArgs e)
        {
           Session["id"] = Page.Request["ID"];
           Response.Redirect("dy.ascx");
          
        }

接收

  protected void Page_Load(object sender, EventArgs e)
        {
                       
            Session["id"] = Label1.Text.ToString();
        }

Request页面传值,布布扣,bubuko.com

Request页面传值

原文:http://www.cnblogs.com/914556495wxkj/p/3600426.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!