private void getDesignations()
 {
     try
     {
         string OCODE = ((SessionUser)Session["SessionUser"]).OCode;
         var    row   = objDeg_BLL.GetAllDesignation(OCODE).ToList();
         if (row.Count > 0)
         {
             gridviewDesignation.DataSource = row.ToList();
             gridviewDesignation.DataBind();
         }
     }
     catch (Exception)
     {
         throw;
     }
 }
 protected void GetAllDesignation()
 {
     try
     {
         string OCODE = ((SessionUser)Session["SessionUser"]).OCode;
         var    row   = designationBll.GetAllDesignation(OCODE);
         if (row.Count > 0)
         {
             ddlDesignations.DataSource     = row.ToList();
             ddlDesignations.DataTextField  = "DEG_NAME";
             ddlDesignations.DataValueField = "DEG_ID";
             ddlDesignations.DataBind();
             ddlDesignations.AppendDataBoundItems = false;
         }
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }