Move html to cshtml for backbone.js in ASP.NET MVC 3

Chanmingman's Blog

If you download the tutorial for backbone.js part 1 here you will see the UI is using html file, with html extension of course.


You can create a new MVC3 web application using ASP.NET MVC 3 Web Application.


1. Add the following code into HomeController.cs.


publicActionResult Contact()


  return View();



2. Right click the Contact() area in the HomeController and choose Add View.



3. You will now see Contact.cshtml in the View folder.


4. Paste the following code to the Contact.cshtml after the } .




    <title>Backbone.js Web App</title>










View original post 547 more words


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s