简体   繁体   English

asp.net转换为html

[英]asp.net to html convert

I'm looking for some way to convert dynamic ASP.NET page to static html. 我正在寻找将动态ASP.NET页转换为静态html的方法。 I want to reduce costs of servers by converting it to static html page. 我想通过将其转换为静态html页面来降低服务器成本。 Currently I'm checking, if HTTracker can help me, but maybe there is some better software. 目前,我正在检查HTTracker是否可以帮助我,但是也许有一些更好的软件。 Thanks. 谢谢。

Rather than converting them to static HTML files, I would recommend caching your pages. 建议您将页面缓存,而不是将它们转换为静态HTML文件。

Your pages rendered output (the HTML) will then be stored and retrieved by other users until the cache expires. 页面呈现的输出(HTML)将被其他用户存储和检索,直到缓存过期。

This is basically doing what you require, but with the added benefit of an expiration. 基本上,这是您所需要的,但是具有到期的额外好处。

<%@ OutputCache Duration="60" VaryByParam="None" %>

http://msdn.microsoft.com/en-us/library/06bh14hk(v=vs.100).aspx http://msdn.microsoft.com/zh-CN/library/06bh14hk(v=vs.100).aspx


If this is not an option you could always copy the rendered HTML from the page source of your browser, and paste that into a blank HTML file. 如果不是这样,您可以始终从浏览器的页面源中复制呈现的HTML,并将其粘贴到空白HTML文件中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM