ASPX HTML转换 [英] ASPX HTML Conversion

查看:59
本文介绍了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


这篇关于ASPX HTML转换的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆