Default1:
    protected void Button1_Click(object sender, EventArgs e)
    {
        string Str = "Hello World";
        this.Context.Items.Add("Text",Str);
        this.Server.Transfer("default2.aspx");
    }
    Default2:
    protected void Page_Load(object sender, EventArgs e)
    {
        this.Response.Write(this.Context.Items["Text"].ToString());//HttpContext接收数据
    }

相关文章:

  • 2022-03-06
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-13
  • 2022-12-23
  • 2021-10-08
  • 2022-12-23
猜你喜欢
  • 2021-05-18
  • 2021-10-04
  • 2021-07-15
  • 2022-01-02
  • 2022-12-23
  • 2021-11-04
  • 2021-12-30
相关资源
相似解决方案