Oct 26 2009

How to create asp.net mvc application

Step1: Start -> Programs -> choose VS2008 or 2005 -> File-> Project -> choose web (project type Visual C#) ->choose Asp.Net MVC Web Application -> Application name is myFirstMVCapp -> Go to Solution explorer -> you will observe Model, View and Controller folder.

MVC Application

MVC Application

MVC Unit Test

MVC Unit Test

Then click ok

By default,

Controller folder contain AccountController.cs and HomeController.cs

Views contain three folders Account, Home and Shared.

Model: In Model create ADO.Net Entity Data Model (edmx) or Linq to SQL Classes (dbml)

About MVC

About MVC

Now Run the application . It show with some default page out put without writing any code ( About page and Default page).

Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks

Leave a Reply

Alibi3col theme by Themocracy