Asp.net MVC2.0 series of articles-running Web MVC2.0 Demo

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.