Esempio n. 1
0
 private void LoadLists()
 {
     ddlArticleDocTypes.DataSource     = ReferenceDataFacade.GetArticleDocTypes();
     ddlArticleDocTypes.DataTextField  = "ArtDocTypeDescription";
     ddlArticleDocTypes.DataValueField = "ArtDocTypeId";
     ddlArticleDocTypes.DataBind();
     ddlArticleDocTypes.Items.Insert(0, liDefault);
 }
Esempio n. 2
0
        protected DataTable GetCountries(bool bypassCache)
        {
            if (IsCachingEnabled())
            {
                string cacheKey = "Countries";

                DataTable tblCountries = Cache.Get(cacheKey) as DataTable;

                if (bypassCache || tblCountries == null)
                {
                    //tblCountries = CountryLookup.GetCountryTable();
                    tblCountries = ReferenceDataFacade.GetCountries();

                    Cache.Insert(cacheKey, tblCountries, null, GetCacheExpireTimeFromConfig(), Cache.NoSlidingExpiration);
                }

                return(tblCountries);
            }

            // return CountryLookup.GetCountryTable();
            return(ReferenceDataFacade.GetCountries());
        }