又一种页面之间传值方式
Sender.aspx页面:
protected void Button1_Click(object sender, EventArgs e)
{
Context.Items["username"] = "honge";
Server.Transfer("Receive.aspx");
}
Receive.aspx页面:
protected void Page_Load(object sender, EventArgs e)
{
string username = Context.Items["username"] ;得到参数值
}