var application = (HttpApplication)sender; var context = application.Context; var request = context.Request; var response = context.Response; var page = request.RawUrl.ToLower().Replace("/", string.Empty).Replace("?", string.Empty); if (request.Url.ToString().ToLower().Contains("cms")) return; ACE.Dal.ACEEntities db = new ACE.Dal.ACEEntities(); ACE.Dal.Page cmsPage = db.Pages.FirstOrDefault(p => p.PageName.ToLower() == page) ?? new ACE.Dal.Page(); if (cmsPage.IsContentPage) response.Redirect("ContentPage.aspx?pageID=" + cmsPage.PageID);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)