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; } }
private bool MaxFeaturedItemsExist() { BPNews bp = new BPNews(); BENews ds = bp.SelectFeatured(); return (ds.tbl_News.Count == Convert.ToInt32(ConfigurationManager.AppSettings["MaxFeaturedNewsItems"])); }