Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ASP.NET MVC and HTML5

I have been looking into HTML5 and I am really excited to try it out. As a framework I would like to use ASP.NET MVC, but I am unsure how it works with HTML5.

Are there (i know there are, but not sure if they are good) any good HTML5 toolkits for ASP.NET MVC? Basically i would like some pointers where to start with creating a page with rich HTML5 controls using MVC + some pros and cons from your experience.

Anyway I am willing to ditch PHP and start with MVC if the HTML support is there... I have C# skills and I understand the MVC pattern.

With best regards, no9.

like image 638
no9 Avatar asked May 22 '13 08:05

no9


People also ask

Is ASP.NET and HTML same?

ASP is a server-side language. This means that the code that is written gets sent to the server, and it returns some code depending on what it was asked to do. HTML is a client-side language. Basically it has to do with the user interface, with which the user interacts.

Is ASP.NET MVC 5?

ASP.NET MVC 5 is a web framework based on Model-View-Controller (MVC) architecture. Developers can build dynamic web applications using ASP.NET MVC framework that enables a clean separation of concerns, fast development, and TDD friendly.

Is ASP.NET MVC 5 outdated?

Is the framework outdated? ASP.NET MVC is no longer in active development.

Is ASP.NET MVC still used?

It is no longer in active development. It is open-source software, apart from the ASP.NET Web Forms component, which is proprietary. ASP.NET Core has since been released, which unified ASP.NET, ASP.NET MVC, ASP.NET Web API, and ASP.NET Web Pages (a platform using only Razor pages).


2 Answers

MVC and HTML 5 don't really have anything to do with each other so you can use any framework you want, its all about the program.

And Visual Studio 2012 supports HTML 5 you should install a extension for VS called "Web Essentials 2012" for the best support for HTML 5.

For a good startup you can also check html5boilerplate out.

I hope this helps getting you started.

like image 192
Kimtho6 Avatar answered Oct 25 '22 21:10

Kimtho6


I wrote an HTML5 toolkit for ASP.NET MVC that you simply add to your project that will give you the functionality that you need.

Once you have added the library to your project, you can use it in your View like so:

@Html.Html5TextBox("txtOne", InputType.Color)

Which will return a textbox element that looks like:

<input type="color" id="txtOne" name="txtOne">

There is loads of support for many other HTML5 input types - for more information, check out the blog post.

like image 20
Deano Avatar answered Oct 25 '22 22:10

Deano