如何将现有的ASP.NET网站HTML 5 [英] How to convert an existing ASP.NET website to HTML 5

查看:138
本文介绍了如何将现有的ASP.NET网站HTML 5的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个网站,首先创建由Visual Studio 2005,然后我在转换到Visual Studio 2008和目前使用Visual Studio 2008中的Visual Studio 2010 Service Pack 1后,HTML 5和CSS 3似乎是可用的。我想我的网站转换为VS 2010网站,该网站使用HTML5。

I have a website which created first by Visual Studio 2005, then I convert in to Visual Studio 2008 and currently using Visual Studio 2008. After Visual Studio 2010 Service Pack 1, HTML 5 and CSS 3 seem to be available. I want to convert my website to a VS 2010 website which uses HTML5.

如何才能做到这一点?

是否有可能将其转换为ASP.NET Web应用程序,而我从VS2008将它移植到Visual Studio 2010?

Is it possible to convert it to an ASP.NET Web Application while I'm porting it from VS2008 to Visual Studio 2010 ?

我知道如何将网站转换为Web应用程序在Visual Studio 2008,但我没有使用Visual Studio 2010中,并没有对不同的想法。

I know how to convert a website to web application in Visual Studio 2008 but I haven't used Visual Studio 2010 and have no idea about the differences.

推荐答案

正如smnbss提到的,没有转换工具来为你做这个。这就是说,有可智能感知支持HTML5和CSS3在VS 2010中新SP1。更多信息:

As mentioned by smnbss, there is no conversion tool to do this for you. That said, there is intellisense support available for HTML5 and CSS3 in VS 2010 with the new SP1. More info:

http://madskristensen.net/post/ HTML5,CSS3,在视觉工作室-2010-SP1.aspx

http://geekswithblogs.net/ranganh/archive/2011/02/07/html5-and-visual-studio-2010.aspx

它很可能这样做,如果你避免使用的那喷涌出难看的HTML控件;例如,选择列表视图,而不是GridView的。

Its quite possible to do this if you avoid the use of controls that spew out ugly HTML; for example, choose ListViews instead of GridViews.

此外,使用 HTML5Boilerplate 来帮助您跨浏览器的一致性。

Also, use the HTML5Boilerplate to assist you with cross-browser consistency.

和这里是如何的样板用的的NuGet (警告:这是新的,我还没有尝试过):

And here is how to integrate the Boilerplate into an ASP.NET Web Forms project with Nuget (Caveat: this is new and I have not tried it):

http://nuget.org/List/Packages/Html5Boilerplate.WebForm

应用HTML5Boilerplate之前,你需要尽可能的用户群而言找出自己的优先级,然后确定哪个组合更适合您的情况:

Before applying HTML5Boilerplate, you need to identify your own priorities as far as your user base is concerned, then determine which mix better suits your situation between:

<一个href=\"http://ux.stackexchange.com/questions/935/what-are-the-differences-between-progressive-enhancement-and-graceful-degradation\">Progressive增强和逐渐退化

最后,因为手机网络使​​用率已经超过了桌面浏览器的第一次,你可能要考虑去的移动第一

Finally, since "mobile" Web usage has surpassed that of desktop browsers for the first time ever, you might want to consider going "Mobile First"

更新:

ASP.NET MVC3刚刚被释放,包括HTML 5启用项目模板:

ASP.NET MVC3 has just been released and includes HTML 5 enabled project templates:

http://www.asp.net/mvc/mvc3

这篇关于如何将现有的ASP.NET网站HTML 5的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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