A preliminary study on ASP.net MVC framework

Source: Internet
Author: User

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:

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.