方法1 使用Response跳转页面时直接传递
网页1中:
Response.Redirect("3AccManage.aspx?LoginUid=" + strUid);
网页2中:
if (Request.QueryString["LoginUid"]!= null)
{
this.LabelSession.Text = Request.QueryString["LoginUid"];
}
即可实现参数传递.
方法2 使用Session传递多个值
网页1中:
string strTxt1= "Hello World";
...
Session["Message"] = strTxt1; // "[ ]' 内字符任意
...
Response.Redirect("*.aspx");
网页2中:
string str2 ;
Session["Message"] = str2; //即完成传递
吾日三省吾身.