设置 session
this.Page.Session["UserName"]="GaoJie";
this.Page.Session["Password"]="Password1";
设置 URL 参数
this.Page.Response.Redirect("Framework_InterpretSite.aspx?country=China",true);
读取Session
// this.Help.Text=this.Page.Session["UserName"].ToString();
// this.Contact_Us.Text=this.Page.Session["Password"].ToString();
读取 URL 参数
// this.Help.Text=this.Page.Request["country"].ToString();
this.Page.Session["UserName"]="GaoJie";
this.Page.Session["Password"]="Password1";
设置 URL 参数
this.Page.Response.Redirect("Framework_InterpretSite.aspx?country=China",true);
读取Session
// this.Help.Text=this.Page.Session["UserName"].ToString();
// this.Contact_Us.Text=this.Page.Session["Password"].ToString();
读取 URL 参数
// this.Help.Text=this.Page.Request["country"].ToString();
浙公网安备 33010602011771号