session 和 cookie的设置和获取
获取session:
TextBox1.Text = Convert.ToString(Session["value"]);
设置session:
Session["value"] =TextBox1.Text;
获取cookie:
Label1.Text = Request.Cookies["name"].Value;
设置cookie:
Response.SetCookie(new HttpCookie("name",TextBox1.Text));