예제 #1
0
        private void BindFeaturedNews()
        {
            BPNews bp = new BPNews();
            BENews ds = bp.SelectFeatured();

            if (ds.tbl_News.Count > 0)
            {
                rptFeaturedNews.DataSource = ds.tbl_News;
                rptFeaturedNews.DataBind();

                plcFeaturedNews.Visible = true;
            }
        }
예제 #2
0
        private bool MaxFeaturedItemsExist()
        {
            BPNews bp = new BPNews();
            BENews ds = bp.SelectFeatured();

            return (ds.tbl_News.Count == Convert.ToInt32(ConfigurationManager.AppSettings["MaxFeaturedNewsItems"]));
        }