Introduction to ASP. NET MVC

Source: Internet
Author: User
Tags what is asp visual studio 2010
What is ASP. NET MVC

ASP. NET MVC is Microsoft's official launch of the ASP-based MVC pattern Web application Development framework.

The official website is: HTTP://WWW.ASP.NET/MVC.

The first version of ASP. NET MVC was the RTM version released on March 17, 2009. Since its inception, has been the vast number of programmers welcome.

The latest ASP 3.0 is officially released on January 13, 2011.

Download addresses for each version of asp: (admin10000.com)

ASP. NET MVC 1.0 http://www.microsoft.com/download/en/details.aspx?id=5388

This version applies to Visual Studio 2008 and the ASP. NET 3.5 platform-based visual Web Developer Express.

ASP. NET MVC 2.0 http://www.microsoft.com/download/en/details.aspx?id=22079

This version applies to Visual Studio 2008 and the ASP. NET 3.5 platform-based visual Web Developer Express.

ASP. NET MVC 3.0 http://www.microsoft.com/download/en/details.aspx?id=4211

This version is available for Visual Studio 2010 and the ASP. NET 4.0 platform-based visual Web Developer Express.

Tips for using

1. After the download, you will get an. msi installation file and double-click to install it.

2, different versions of the ASP can coexist, that is, on the same machine, you can have programs with ASP. NET MVC 1, some programs with ASP. NET MVC 2.

3. The default integration of ASP. NET MVC 2.0 in Visual Studio 2010 does not have to be downloaded separately.

MVC divides a Web application into three parts: Model View and Controller. The ASP. NET MVC Framework provides an MVC-based application that can replace an ASP. NET WEB form.

Advantages of MVC:

1. Make complex projects easier to maintain by dividing the project into model View and controller.

2. The view state and server form controls are not used, which makes it easier to control the behavior of the application

3. The application uses a controller to control the request and can provide a rich URL rewrite.

4. Better support for unit testing

5. Better performance in team development mode

Advantages of Web Forms

1. Use event-driven mode to control application requests, supported by a large number of server controls

2. Using the page control mechanism, you can add event handlers for a single page.

3. Use view state and server-side pages to make it easier to manage page status information.

4. For a small number of development teams who want to use server-side controls, it is easier to use them.

5. It's easier to develop than the MVC pattern.

MVC Framework Features

1. Detach tasks (input logic, business logic and display logic), testability and default test driver components. All of the components used by MVC are interface-based and can be tested by mock objects, and you can use tests without having to run the controller in an ASP. Make testing faster and more straightforward.

2. Extensible and easy-to-frame. The MVC framework is designed to make porting and customizing features easier. You can add your own view engine, URL rewrite policy. Overloaded action methods, and so on. MVC also supports Dependency injection (DI) and inversion of Control (IOC)

3. A powerful URL rewriting mechanism makes it easier to build easy-to-understand and searchable URLs. The URL can contain no file name extensions, and you can rewrite the URLs to make them more friendly to search engines.

4. You can use an existing page tag, user control, and template page for ASP. You can use nested template pages, embed expression <%=%>, declare server controls, templates, data binding, positioning, and so on.

5. With support for existing ASP. NET programs, MVC allows you to use Forms authentication and Windows authentication, URL authentication, group management and rules, output, data caching, session, profile, health monitoring, configuration management system, Provider architecture characteristics.

  • Related Article

    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.