コード例 #1
0
ファイル: PageEngine.cs プロジェクト: xwyangjshb/cuyahoga
        /// <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);
        }
コード例 #2
0
ファイル: GeneralPage.cs プロジェクト: xwyangjshb/cuyahoga
 /// <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);
 }