Install VS2010
First install VS2010. For the installation process, refer to the article:
Http://www.cnblogs.com/ywqu/archive/2010/01/27/1657824.html.
Create the first MVC2.0 Program
Create an asp.net MVC2.0 website program, for example:
Prompt whether to create a Unit Test Project, select create Unit Test Project
MVC2.0 website structure
By default, a new Asp.net MVC2.0 website program is created. The structure is shown as follows:
Content Folder: stores CSS style files
Controllers Folder: stores Controller files whose names end with Controller
Model Folder: stores data Models, business logic, and rules. The file name ends with Models.
Scripts Folder: stores Javascript files. VS2010 integrates Jquery, so there is a Jquery class library under this folder.
View Folder: stores View files.
MvcAppDemo. Tests is the default unit test project.
Website running result
Run the default website, as shown in:
Home page:
About page
Registration page
Logon page
On this logon page, if you do not enter any information, click Log On to trigger non-empty verification.
Summary
This article only gives beginners an approximate impression on the MVC2.0 website. Learning and creating MVC2.0 website applications is not as difficult as they think. You may wish to give it a try. Next, we will use the new features of MVC2.0 to create some instances.