如何将asp文件转换为html文件 [英] How to Convert asp file to html file

查看:221
本文介绍了如何将asp文件转换为html文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我正在做一个网站开发项目。我在asp.net中完成了该项目,但客户想要html文件。所以请帮我一个孔asp文件转换为html文件。



谢谢,



问候,

Rajesh

Hi,

I am doing a website development project. I had completed that project in asp.net but the customer want to html file. so please help me a hole asp file convert to html file.

Thanks,

Regards,
Rajesh

推荐答案

您无法将ASP文件转换为HTML:HTML是一种标记语言,用于描述对象在浏览器的页面,(除了客户端javascript)它一旦呈现的页面就不包含任何处理。



事物的ASP方面运行在服务器上,在IIS(或等效的)和.NET框架下,包含所有处理,并生成HTML以动态地提供给浏览器。



您不能只使用HTML并假设它将与ASP文件一样,因为HTML是在服务器上动态生成的静态对象,并且通常对每个用户都不同。
You can't convert an "ASP" file into HTML: HTML is a markup language which describes how objects appear on the page of a browser, and (with the exception of client side javascript) it includes no processing at all once the page it rendered.

The "ASP" side of things runs on a server, under IIS (or equivalent) and the .NET framework, contains all of the processing, and generates the HTML to feed to the browser dynamically.

You can't just take the HTML and assume that it will do the same as the "ASP" file, because the HTML is a static object generated dynamically on the server and will normally be different for each user.


在Web浏览器中打开页面并查看页面源。这是ASP页面的HTML
Open the page in a web browser and view page source. That is the HTML of the ASP page


你的意思是他们希望它有一个html扩展名吗?如果是这样谷歌使用html for asp.net你会发现如何将html文件映射到aspx请求,但是我会问他们为什么要这样做。如果答案是搜索引擎优化,那么告诉他们它将没有任何效果。



如果他们字面意思是一个静态的html文件,那么除非你的aspx页面没有作为html文件的服务器端元素根本无法进行服务器端处理。
Do you mean they want it to have an html extension? If so google "use html for asp.net" and you'll find how to map html files to aspx requests, however I'd question why they want to do this. If the answer is SEO then tell them it will have no effect whatsoever.

If they literally mean a static html file then you can't unless your aspx pages have no server-side elements at all as html files have no capability for server-side processing.


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

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