using System.Web.SessionState
HttpSessionState ss = HttpContext.Current.Session;HttpContext.Current.Session["test"] = "test";TextBox1.Text = ss.SessionID;