protected void Save_Click(object sender, EventArgs e) { XmlUtil x_util = new XmlUtil(); Hashtable State = (Hashtable)HttpRuntime.Cache[Session.SessionID]; Util util = new Util(); if (util.CheckSessionTimeout(State, Response, "../Default.aspx")) return; if (MobileCommerceUsername.Text.Trim().Length == 0) { Message.Text = "Set the Username."; return; } if (MobileCommercePassword.Text.Trim().Length == 0) { Message.Text = "Set the Password."; return; } x_util.SetMobileCommerce(State, MobileCommerceUsername.Text.Trim(), MobileCommercePassword.Text.Trim()); Message.Text = "Mobile Commerce has been set."; }