Beispiel #1
0
 protected void GetCountry()
 {
     ctry.IsActive = 1;
     lstCountry    = objcountryBL.GetCountryByIsActive(ctry).ToList();
     foreach (var cnt in lstCountry)
     {
         ListItem li = new ListItem();
         li.Text  = cnt.CountryName;
         li.Value = cnt.CountryID.ToString();
         ddlNationality.Items.Add(li);
     }
 }
        protected void GetCountry()
        {
            List <Countrytbl> lstCountry   = new List <Countrytbl>();
            Countrytbl        ctry         = new Countrytbl();
            CountryBL         objcountryBL = new CountryBL();

            ctry.IsActive = 1;
            lstCountry    = objcountryBL.GetCountryByIsActive(ctry).ToList();
            foreach (var cnt in lstCountry)
            {
                ListItem li = new ListItem();
                li.Text  = cnt.CountryName;
                li.Value = cnt.CountryID.ToString();
                DDlCountry.Items.Add(li);
            }
        }