Export ASPX to HTML

后端 未结 5 1295
春和景丽
春和景丽 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条回答
  •  醉酒成梦
    2021-01-03 02:21

    You could use wget (a command line tool) to recursively query each page and save them to html files. It would update all necessary links in the resulting html to reference .html files instead of .aspx. This way, you can code all your site as if you were using server-generated pages (easier to test), and then convert it to static pages.

    If you need static HTML for performance reasons only, my preference would be to use ASP.Net output caching.

提交回复
热议问题