How to create a simple website in ASP.NET MVC
Part two of a seven-part series of blogs

This blog explains the steps you'll need to follow to create a simple one page website in ASP.NET MVC. The aim of the blog is not to act as a tutorial, but to help people choose between ASP.NET MVC and classic ASP.NET.

  1. An overview of creating a website in ASP.NET MVC
  2. Creating an ASP.NET MVC website (this blog)
  3. Creating an entity model in MVC
  4. Creating a view model
  5. Ensuring MVC shows the right page - router and controller
  6. Creating our view
  7. Conclusion

Posted by Andy Brown on 16 June 2014

You need a minimum screen resolution of about 700 pixels width to see our blogs. This is because they contain diagrams and tables which would not be viewable easily on a mobile phone or small laptop. Please use a larger tablet, notebook or desktop computer, or change your screen resolution settings.

Creating an ASP.NET MVC website

To get our example started, we need to create a website.  In Visual Studio, choose to create a new project:

Creating a new project

Choose to create a new MVC website using C# ( we're using MVC 4 here).

Choose the following options:

New website options

Choose to create a basic website.

Visual Studio will create a basic structure for your website:

Solution Explorer

The folders and files created.  Don't go looking for your .aspx files - there aren't any!  MVC is much more complicated than that ...


Now that we've got a website, we can create an entity model.

This blog has 0 threads Add post