private void FillRegion()
 {
     try
     {
         string OCODE = ((SessionUser)Session["SessionUser"]).OCode;
         drpRegion.DataSource     = regionDal.GetAllRegions(OCODE).ToList();
         drpRegion.DataTextField  = "RegionName";
         drpRegion.DataValueField = "RegionID";
         drpRegion.DataBind();
         drpRegion.Items.Insert(0, new ListItem("--Select--", "0"));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Exemplo n.º 2
0
 public virtual List <HRM_Regions> GetAllRegions(string OCODE)
 {
     return(objRegonDal.GetAllRegions(OCODE));
 }