zoukankan      html  css  js  c++  java
  • Request页面传值

      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();
            }

  • 相关阅读:
    xxx
    部署在自己的加了分享,试下
    疑问
    去掉分享
    womenzijide_jiafenxiang
    womenzijide2
    womenzijide
    xiugai-去除js注释
    xiugai2
    《设计模式之禅》读书笔记(一)——单例模式
  • 原文地址:https://www.cnblogs.com/914556495wxkj/p/3600426.html
Copyright © 2011-2022 走看看