Пример #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            current_logged_in_user = Request.Cookies["CurrentLoggedInUser"].Value;

            UserBO userbo = new UserBO();

            current_user_obj     = userbo.getUserById(current_logged_in_user);
            GridView1.DataSource = bookstorebo.GridViewTable();
            GridView1.DataBind();

            if (current_user_obj.role == "Staff")
            {
                HL_StaffCorner.Visible = true;
            }
            else
            {
                HL_StaffCorner.Visible = false;
            }
        }