using System; using System.Web; using System.Web.UI; using System.IO; using System.Xml; using System.Text.RegularExpressions; using umbraco.presentation; using umbraco.cms.businesslogic.web; namespace umbraco { /// /// Summary description for WebForm1. /// /// public partial class UmbracoDefault : Page { private Guid m_version = Guid.Empty; private string m_tmp = requestHandler.cleanUrl(); private page m_umbPage = null; private requestHandler m_umbRequest = null; private bool m_validateRequest = true; /// /// To turn off request validation set this to false before the PageLoad event. This equelevant to the validateRequest page directive /// and has nothing to do with "normal" validation controls. Default value is true. /// public bool ValidateRequest { get { return m_validateRequest; } set { m_validateRequest = value; } } protected override void Render(HtmlTextWriter output) { // Get content TextWriter tempWriter = new StringWriter(); base.Render(new HtmlTextWriter(tempWriter)); string pageContents = tempWriter.ToString(); pageContents = template.ParseInternalLinks(pageContents); // Parse javascript without types // NH 15.07.08 - Why should we do that on every page when people should fix their templates instead. // pageContents = // pageContents.Replace("