HTML页面到aspx页面的转换 [英] HTML Page to aspx page conversion

查看:237
本文介绍了HTML页面到aspx页面的转换的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的网站上有所有HTML页面.但是我想在Visual Studio中将它们转换为.aspx页面.如何将HTML页面转换为.aspx页面?

My website is having all HTML pages.but I want to convert them to .aspx pages in visual studio.How can I covert HTML pages to .aspx pages?

推荐答案

认为您可以将HTML页面转换"为.aspx页面,这完全等同于保留HTML页面.

这是做事的真实方法.只要页面保持静态,就可以将其保留为HTML.仅当您想要返回静态文档以外的任何服务器端行为时,才需要ASP.NET:业务逻辑,某些数据库应用程序的前端或某种其他类型的服务或任何组合.一旦需要这种服务器端行为,就将添加.aspx页并在这些页的后面开发代码.

您可以在同一网站解决方案中自由地将各种静态文档与.aspx页面混合使用.

—SA
Thinking that you can "convert" your HTML pages to .aspx pages is strictly equivalent to leaving HTML pages as is.

This is a real way to do things. As long as your page remains static, you can leave it as HTML. ASP.NET is only needed if you want any kind of server-side behavior beyond just returning of static documents: business logic, front-end to some database application or some other kind of service or any combination. As soon as you need such server-side behavior, you will add .aspx pages and develop your code behind the pages.

You can freely mix all kinds of static documents with .aspx pages in the same Web site solution.

—SA


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

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