protected void CheckPermis() { Methods m = new Methods(); m.CheckUserLoged(); Int32 userID = (Int32)Session["userID"]; ArrayList pq = new ArrayList(); pq.AddRange(_entities.GetChucNangByIDNhanVien(userID).ToArray()); RadMenu1.Items.FindItemByValue("quantri").Visible = pq.Contains(3); RadMenu1.Items.FindItemByValue("quanly").Items.FindItemByValue("hoso").Visible = pq.Contains(1); RadMenu1.Items.FindItemByValue("quanly").Items.FindItemByValue("hopdong").Visible = pq.Contains(2); RadMenu1.Items.FindItemByValue("quanly").Items.FindItemByValue("thunhap").Visible = pq.Contains(6); //RadMenu1.Items.FindItemByValue("quanly").Items.FindItemByValue("tuyendung").Visible = pq.Contains(14); //RadMenu1.Items.FindItemByValue("danhmuc").Visible = pq.Contains(13); }