protected void Page_init(object sender, EventArgs e) { string EmpId = HttpContext.Current.Session["UserAuthId"] == null ? string.Empty : HttpContext.Current.Session["UserAuthId"].ToString(); if (EmpId.Length == 0) { GlobalMethods.logout(); } if (!AccessRightsBAL.IsTP(Convert.ToInt32(HttpContext.Current.Session["UserAuthId"].ToString()))) { GlobalMethods.logout(); } }