1,querystring 地址栏传值(response.redirect(a.aspx?name=1)=>request["name"]) 
        2,session        Session("param1")="111" ; string str1=Session("param1").ToString();
        3,缓存
        4,cookie        HttpCookie cookie_name=new HttpCookie("name");
                        cookie_name.Value=Label1.text;
                        Response.AppendCookie(cookie_name);
                        server.transfer("Default2.aspx");       
                        str1== Request.Cookies["name"].Value.ToString();
        5,Application    Application("param1")="111";   str1=Application("param1").ToString();
        6,server.transfer
                首先在default2.aspx中添加:<%@ Reference Page="~/Default1.aspx %> 或者<%@ PreviousPageType VirtualPath="~/Default1.aspx" %>

 

     7,跨页投递:(TextBox)PresviousPage.FindControl("TextBox1");

相关文章:

  • 2021-11-13
  • 2022-12-23
  • 2021-06-10
  • 2021-05-28
  • 2022-12-23
  • 2021-08-21
猜你喜欢
  • 2022-01-07
  • 2021-06-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-26
相关资源
相似解决方案