protected void Page_Load(object sender, EventArgs e) { PaymentBusiness pb = new PaymentBusiness(); sumprice.InnerText = pb.GetSumPayment().ToString("N0") + " " + "ریال"; string mId = Request.QueryString["id"].ToString(); string[] id = mId.ToString().Split(new char[] { '@' }); string menuId = ""; for (int i = 0; i < id[1].Length; i++) { string s = id[1].Substring(i + 1, 1); if (s != "-") { menuId += s; } else { break; } } Session[sessionNames.menuID] = menuId; AccessControl1.MenuId = menuId; AccessControl1.UserId = Session[sessionNames.userID_Karbar].ToString(); }