asp.net MVC Application Sample
When you create a asp.net MVC Web application with the Visual Studio default template, you create a very simple instance program that you can use to help you understand the components of the ASP.net MVC program, which we'll explain with this example.
Click File > New project in Visual Studio 2008, select the asp.net MVC template to create a asp.net MVC application, as shown in Figure 1, in the New Project dialog box, select your familiar programming language under the project type, such as visual Basic or C #, then select the "ASP.net MVC Web Application" template under the template and click the OK button.
Figure 1 New Project dialog box
When you create a new asp.net MVC application, a dialog box is displayed for creating a new unit test project, as shown in Figure 2, which allows you to create a separate project for your solution to test your asp.net MVC application, where you select the option "No, don't create a test project", Then click the OK button.
Figure 2 Creating a Unit Test dialog box
After creating the ASP.net MVC application, you will see a few folders and files in the Scenario Browsing window, specifically, you will see the model (Models), view (views) and controller (controllers) three folders, as you can guess from the names of these folders, These folders include the implementation files for models, views, and controllers.