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.
How can this be done?
Is it possible to convert it to an ASP.NET Web Application while I'm porting it from VS2008 to 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.
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 .
If you want to build a Web page for your small business, ASP.NET is a popular and free framework that many top companies use for their own Web applications. From Bing to 3M to US Airways, companies all over the world are using ASP.NET to create vibrant websites.
ASP.NET Web Forms isn't supported in ASP.NET Core (nor are ASP.NET Web Pages). Typically, the functionality of these pages must be rewritten when porting to ASP.NET Core. There are, however, some strategies you can apply before or during such migration to help reduce the overall effort required.
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-in-Visual-Studio-2010-SP1.aspx
http://geekswithblogs.net/ranganh/archive/2011/02/07/html5-and-visual-studio-2010.aspx
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.
Also, use the HTML5Boilerplate to assist you with cross-browser consistency.
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
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:
Progressive Enhancement and Gradual Degradation
Finally, since "mobile" Web usage has surpassed that of desktop browsers for the first time ever, you might want to consider going "Mobile First"
UPDATE:
ASP.NET MVC3 has just been released and includes HTML 5 enabled project templates:
http://www.asp.net/mvc/mvc3
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With