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接收数据
}