using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; public partial class news : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { string checkBack = "check back soon for more information to come"; News ds = null; MetroEyeCare.Web.Cache.CacheManager.GetFromCache(ref ds); if (ds._News.Rows.Count > 0) { News.NewsRow x = (News.NewsRow)ds._News.Rows[0]; _discounts.Text = (x.Discounts == System.Convert.DBNull ? checkBack : Server.HtmlDecode(x.Discounts)); _news.Text = (x.StaffNews == System.Convert.DBNull ? checkBack : Server.HtmlDecode(x.StaffNews)); _updates.Text = (x.Updates == System.Convert.DBNull ? checkBack : Server.HtmlDecode(x.Updates)); } else { _discounts.Text = checkBack; _news.Text = checkBack; _updates.Text = checkBack; } } }