private void updaterc(string id)
    {
        try
        {
            objBal = new ClsBAL();

            objBal.updaterc(id);
            ClsBAL obj = new ClsBAL();
            DataSet ds = obj.GetState(Convert.ToInt32(Session["UserId"]));
            string str = ds.Tables[0].Rows[0]["State"].ToString();
            ds = obj.GetStatewiseemprequests(str);
            gvAgentRequests.DataSource = ds;
            ViewState["Users1"] = ds.Tables[0];
            gvAgentRequests.DataBind();

        }
        catch (Exception ex)
        {
            throw ex;
        }
    }
    void BindData()
    {
        try
        {
            if (Session["Role"].ToString() == "Admin")
            {
                ClsBAL obj = new ClsBAL();
                DataSet ds = obj.GetEmpRequests();
                gvAgentRequests.DataSource = ds;
                ViewState["Users1"] = ds.Tables[0];
                gvAgentRequests.DataBind();
            }
            else if (Session["Role"].ToString() == "BSD")
            {
                ClsBAL obj = new ClsBAL();
                DataSet ds = obj.GetState(Convert.ToInt32(Session["UserId"]));
                string str = ds.Tables[0].Rows[0]["State"].ToString();
                ds = obj.GetStatewiseemprequests(str);
                gvAgentRequests.DataSource = ds;
                ViewState["Users1"] = ds.Tables[0];
                gvAgentRequests.DataBind();

            }
        }
        catch (Exception ex)
        {
            lblMsg.Text = ex.Message;
            throw;
        }
    }