Export ASPX to HTML

后端 未结 5 1296
春和景丽
春和景丽 2021-01-03 01:54

We\'re building a CMS. The site will be built and managed by the users in aspx pages, but we would like to create a static site of HTML\'s. The way we\'re doing it now is w

5条回答
  •  旧时难觅i
    2021-01-03 02:20

    I seem to have found the solution for my problemby using the Server.Ecxcute method.

    I found an article that demonstared the use of it:

    TextWriter textWriter = new StringWriter();
    Server.Execute("myOtherPage.aspx", textWriter);
    

    Then I do a few maniulatons on the textWriter, and insert it into an html file. Et voila! It works!

提交回复
热议问题