MVC (Modal View Controller) is originally in the desktop program, m refers to the data model, v refers to the user interface, C is the controller, that is, three core components. It is a design pattern that makes it mandatory to separate the input, processing, and output of an application.
So, why use MVC? Most Web applications are created using a procedural language such as ASP, PHP, or CFML. They mix data-tier code like database query statements with presentation-layer code like HTML. Experienced developers separate the data from the presentation layer, but this is often not easy to do, and MVC fundamentally makes it mandatory to separate them.
Own run Aspnetmvcpreview2-setup.msi installation, there is a problem: After installation, in the VS2008 inside unexpectedly no MVC template?!
The internet to find the reason, originally because the Chinese version of all the installation files by default placed under 2052, and asp.net mvc is in English, all placed under 1033, so that the ASP.net MVC template can not load.
Luckily, there's a way to fix it. Copy the folder first, as shown below:
After installation, a new project template, "asp.net MVC Web application", is added to VS2008, as shown in the following illustration:
When you create a new project, VS2008 automatically generates the project's file structure. As shown in the following illustration: