public override void DataBind() { if (_bound) { return; } _bound = true; CustomPage thisPage = this.Page as CustomPage; if (thisPage == null) { thisPage = new CustomPage(); } ContentManager pagesMgr = new ContentManager(); PagesDS.PagesRow page = pagesMgr.GetPage(PageName, thisPage.Language); if (page == null && CreatePage) { pagesMgr.AddPage(pageName, pageName, "", false, ContentManager.Content(pageName), thisPage.Language); page = pagesMgr.GetPage(pageName, thisPage.Language); } if (page == null) { return; } string str = page.Content; str = str.Replace("<sup>&reg;</sup>", "®"); str = str.Replace("<sup>®</sup>", "®"); str = str.Replace("&reg;", "®"); str = str.Replace("®", "<sup>®</sup>"); str = str.Replace("®", "<sup>®</sup>"); this.Text = str; if (OverridePageProperties) { if (thisPage != null) { Config cfg = new Config(); thisPage.Title = page.Title; thisPage.AddDescription(page.Description); thisPage.AddKeywords(page.Keywords); } } base.DataBind(); }