将.aspx文件转换为html文件

编程入门 行业动态 更新时间:2024-10-19 16:36:11
本文介绍了将.aspx文件转换为html文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

如何将.aspx文件转换为html文件

解决方案

在浏览器中在本地计算机上打开它,查看源代码(在IE中查看|来源,在Firefox等中查看|页面源代码,然后将该页面源保存为pagename.html。 显然你将丢失任何asp页面方法

如果我理解你的话,这不是一个好主意。 HTML文件是静态的 - 允许的唯一处理是在客户端机器上,通过javascript。 ASPX文件是动态的,每次用户加载或交互页面时都会在服务器上进行处理,这会生成传递给客户端浏览器的HTML。 如果将ASPX转换为HTML,则会丢失页面的所有动态元素。试一试:在浏览器中加载ASPX页面并右键单击。选择查看页面源(或浏览器调用的任何内容)并将其保存到本地硬盘驱动器。您可以加载它,它看起来就像您的页面,但实际上什么都不会。

请参阅: http:// answers。 yahoo/question/index?qid=20101223220902AAFPGy3 [ ^ ]

how to convert a .aspx file to html files

解决方案

Open it on your local machine in a browser, view the source (View | Source in IE, View | Page Source in Firefox etc ), then save that page source as pagename.html. Obviously you will lose any asp page methods

That is not a good idea, if I understand you right. HTML files are static - the only processing allowed is on the client machine, via javascript. ASPX files are dynamic, there is processing on the server each time the page is loaded or interacted with by the user, and this generates HTML which is passed to the client browser. If you convert your ASPX to HTML you will lose all the dynamic elements of the page. Try it: Load your ASPX page in the browser and right click. Select "View Page Source (or whatever your browser calls it) and save that to you local HDD. You can load it, and it will look like your page, but nothing will actually work.

Refer this: answers.yahoo/question/index?qid=20101223220902AAFPGy3[^]

更多推荐

将.aspx文件转换为html文件

本文发布于:2023-11-10 16:10:32,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1575845.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:文件   转换为   aspx   html

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!