Features and advantages of MVC and WebForm

Source: Internet
Author: User
MVC (model, view, Controller) decomposes a Web application into: Model, view, and Controller. The ASP.net MVC framework provides an application that can replace the ASP.net webform based on the MVC design pattern. asp.net mvc Overview · Advantages of MVC:1. By dividing the project into model, view and controller, it makes complex projects easier to maintain and reduces coupling between projects. 2. Using ViewState and server form controls makes it easier to control the behavior of the application 3. The application controls the request through controller and provides native urlrouting functionality to rewrite the URL. 4. Make the Web program support for unit tests better 5. Better performance in team development mode asp.net mvc Overview · Advantages of WebForm:1. Use event-driven mode to control application requests, supported by a large number of server controls 2. With the page control mechanism, you can add an event handler function for a single page. 3. Use ViewState and server-side pages to make managing page state information easier. 4. For small numbers of developers who want to use server-side controls, it is easier to use 5. It's easier to develop than the MVC pattern. asp.net MVC overview MVC framework Features: 1. Detach tasks (input logic, business logic, and display logic), easy to test and default support for test-driven development (TDD). All of the components used in MVC are based on interfaces and can be mocks when testing, and you are testing without running the asp.net process, making testing faster and simpler. 2. An extensible and simple framework. The MVC framework is designed to make it easier to migrate and customize functionality. You can customize the view engine, urlrouting rules, and overloaded action methods. MVC also supports good support for dependency injection (DI, Dependency injection) and inversion of control (IoC, inversion of controls). 3. Powerful urlrouting mechanism makes it easier for you to set up easy to understand and searchable URLs for SEO to provide better support. URLs can contain no file name extensions and can be overridden to make them more user-friendly to search engines. 4. You can use ASP.net existing page tags, user controls, and template pages. You can use nested template pages, embed expression <%=%&gt, declare server controls, templates, data binding, positioning, and so on. 5. 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.

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.