ASPX HTML转换

问题描述:


我有一个小的应用程序,它具有.aspx,用户控件和dll.我想将所有这些都转换为html页面进行演示.谁能帮我.

谢谢
Karthik

Hi ,
I have a small application which has .aspx,user controls and dlls. I want to convert all those into html pages for a demonstration. Can any one help me.

Thank you,
Karthik

我不明白为什么这是个问题. (当然,转换"没有任何意义,但我了解您的需求.)

在Web浏览器中加载页面.每个浏览器都有一个选项将页面另存为".请确保选择将保存所有文件的选项,而不仅仅是保存请求的HTML页面.

您可以使用类System.Net.HttpWebRequest以编程方式进行操作,请参见 http://msdn.microsoft .com/en-us/library/system.net.httpwebrequest.aspx [ ^ ]以获得文档和代码示例.实现保存所有文件"将需要一些时间.
有很多工具可以做到这一点,例如: http://msdn.microsoft.com/en-us/library/1cc82atw(v=vs.80).aspx [ http://en.lmgtfy.com/?q=copy+网站 [ ^ ]. 2.86亿个结果不能错:-).

希望您了解所有保存的内容都是静态的. :-)因此,我的问题是:为什么不使用可运行的网站进行演示?

—SA
I don''t understand why it''s a problem. (There is no sense in "convert" of course, but I understand what you need.)

Load your page in Web browser. Every Browser has an option "Save page as". Be sure to select the option which will save all files, not just requested HTML page.

You can do it programmatically using the class System.Net.HttpWebRequest, see http://msdn.microsoft.com/en-us/library/system.net.httpwebrequest.aspx[^] for documentation and code samples. It will take some time to implemented "Save all files".
There is number of tools to do that, like this one: http://msdn.microsoft.com/en-us/library/1cc82atw(v=vs.80).aspx[^].
You can easily find what''s best for you: http://en.lmgtfy.com/?q=copy+website[^]. 286 million result can''t be wrong :-).

I hope your understand that all saved content is static. :-) So, my question is: why not using working Web site for your demonstration?

—SA


我想您想在不连接到服务器的情况下显示html和相关图像.

如果这是一个全面的网站- wget [
最好的问候
Espen Harlinn
I guess you want to display the html and related images while not being connected to the server.

If this is for a comprehensive site - wget[^] is your friend.

If it''s for a single page - In IE you''ll find the "Page" drop down - or possibly "File" menu - depending on version and configuration - choose save as, and you''ll have something suitable for offline viewing.

Best regards
Espen Harlinn