protected void grdApprovalList_RowDeleting(object sender, GridViewDeleteEventArgs e)
        {
            try
            {
                GridViewRow row = grdApprovalList.Rows[e.RowIndex];
                string userId = (row.FindControl("lblId") as Label).Text;
                UserBO _reject = new UserBO();
                _reject.UserId = userId;
                SuperUserBAL _adminRejection = new SuperUserBAL();
                int result = _adminRejection.AdminReject(_reject);
                if (result >= 3)
                {
                    lblStatus.Text = "Update Successfull";
                }
                else
                {
                    lblStatus.Text = "Update Failed";
                }
            }

            catch (Exception ex)
            {
                lblStatus.Text = "Update Failed";
            }
            GetData();
        }
        protected void grdApprovalList_SelectedIndexChanging(object sender, GridViewSelectEventArgs e)
        {
            try
            {
                GridViewRow row = grdApprovalList.Rows[e.NewSelectedIndex];
                string userId = (row.FindControl("lblId") as Label).Text;
                UserBO _approval = new UserBO();
                _approval.UserId = userId;
                SuperUserBAL _adminApproval = new SuperUserBAL();
                int result = _adminApproval.AdminApproval(_approval);
                if (result >= 2)
                {
                    lblStatus.Text = userId +" Approved Successfully!";
                    ClientScript.RegisterStartupScript(this.GetType(), "Popup", "Approved();", true);
                }
                else
                {
                    lblStatus.Text = "Update Failed";
                }
            }

            catch (Exception ex)
            {
                lblStatus.Text = "Update Failed";
            }
            GetData();
        }
 public void GetData()
 {
     SuperUserBAL approvalList = new SuperUserBAL();
     DataSet _data = approvalList.ApprovalData();
     grdApprovalList.DataSource = _data;
     grdApprovalList.DataBind();
 }