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