About ASP. net mvc Framework, BKJIA-.NET channel recommended to you, this series of articles also include:
Article 1 Introduction to ASP. net mvc 2.0 MVC Framework
Install VS2010
Install Visual Studio 2010 first. For the installation process, see the following article:
Http://www.cnblogs.com/ywqu/archive/2010/01/27/1657824.html.
Create the first MVC 2.0 Program
Create an ASP. net mvc 2.0 website program, for example:
Prompt whether to create a Unit Test Project, select create Unit Test Project
MVC2.0 website structure
By default, an 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.
Original article title: Asp.net MVC2.0 series of articles-running Web MVC2.0 Demo
Link: http://www.cnblogs.com/ywqu/archive/2010/06/23/1763027.html