protected void Save_Click(object sender, EventArgs e) { Util util = new Util(); Hashtable State = (Hashtable)HttpRuntime.Cache[Session.SessionID]; if (util.CheckSessionTimeout(State, Response, "../Default.aspx")) return; State["BackgroundColor"] = System.Drawing.ColorTranslator.ToHtml(BackgroundColor.SelectedColor); XmlUtil x_util = new XmlUtil(); x_util.SetBackgroundColor((Hashtable)HttpRuntime.Cache[Session.SessionID], State["BackgroundColor"].ToString()); Message.Text = "App Background Color has been saved."; }