ASP. net mvc Overview: Overview of advantages and features

Source: Internet
Author: User

MVC divides a web application into three parts: model view and controller. The ASP. net mvc framework provides an application based on mvc that can replace asp.net web forms.

ASP. net mvc overview-advantages of mvc:

1. By dividing a project into model view and controller, complex projects are easier to maintain.

2. The view state and server form controls are not used to control application behavior more conveniently.

3. The application uses the controller to control program requests and provides rich url rewriting.

4. Better support for unit testing

5. Superior performance in the team development model

ASP. net mvc overview-advantages of web forms:

1. Use the 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 processing functions for a single page.

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

4. developers who want to use server-side controls with a small number of users are more convenient to use.

5. It is easier to develop than the mvc mode.

ASP. net mvc overview mvc framework features:

1. Separate task input logic, business logic and display logic), easy to test and default test driver components. All components used by mvc are based on interfaces and can be tested by mock objects. You can use the test without running controller in the asp.net process. This makes testing faster and easier.

2. A simple and scalable framework. The mvc framework is designed for easier porting and customization. You can add your own view engine and url rewriting policy. Reload the action method. Mvc also supports Dependency Injection (DI) and Inversion of Control (IOC)

3. Powerful url rewriting mechanism makes it easier for you to build understandable and searchable URLs. A url does not contain any file extension, and can be rewritten to make it more friendly to search engines.

4. You can use the existing page tags, user controls, and template pages of asp.net. You can use the nested template page, embedded expression <% = %>, declare server controls, templates, data binding, positioning, and so on.

5. support for existing asp.net programs, mvc allows you to use features such as form authentication and windows authentication, url authentication, group management and rules, output, data cache, session, profile, health monitoring, configuration management system, and provider architecture.

  1. Summary of experience in using ASP. net mvc in IIS
  2. To configure ASP. NET
  3. SQL statements in ASP. NET
  4. Use StringBuilder in ASP. NET
  5. Response. Write in ASP. NET

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.