protected void PostBack()
        {
            PanelDetail.Visible = false;
            //Staff sf = (Staff)Session["UserEntity"];
            //if (sf == null || sf.Role_ID != "manager")
            //{
            //    Response.Redirect("../NoStaffPage.aspx");
            //}
            Staff        manager  = (Staff)Session["LoginStaff"];
            List <Staff> AllStaff = dac.getAllStaffExpManager(manager.Dept_ID);

            Session["AllStaffs"] = AllStaff;

            GridView1.DataSource = dac.getAllStaffExpManager(manager.Dept_ID);
            GridView1.DataBind();



            for (int i = 0; i < AllStaff.Count; i++)
            {
                string role = dac.getSfRoleIdBySfId(GridView1.Rows[i].Cells[1].Text);

                if (role == "AuthStaff")
                {
                    Button btn = (Button)GridView1.Rows[i].Cells[2].FindControl("DelegateBtn");
                    btn.Text = "Undelegate";
                }
                else if (role == "Staff")
                {
                    Button btn = (Button)GridView1.Rows[i].Cells[2].FindControl("DelegateBtn");
                    btn.Text = "Delegate";
                }
            }
        }