/// <summary> /// Use a custom HtmlTextWriter to render the page if the url is rewritten, to correct the form action. /// </summary> /// <param name="writer"></param> protected override void Render(System.Web.UI.HtmlTextWriter writer) { InsertStylesheets(); InsertJavaScripts(); InsertMetaTags(); if (Context.Items["VirtualUrl"] != null) { writer = new FormFixerHtmlTextWriter(writer.InnerWriter, "", Context.Items["VirtualUrl"].ToString()); } base.Render (writer); }
/// <summary> /// Use a custom HtmlTextWriter to render the page if the url is rewritten, to correct the form action. /// </summary> /// <param name="writer"></param> protected override void Render(System.Web.UI.HtmlTextWriter writer) { if (Context.Items["VirtualUrl"] != null) { writer = new FormFixerHtmlTextWriter(writer.InnerWriter, "", Context.Items["VirtualUrl"].ToString()); } base.Render (writer); }