MVC-based advantages advantages of an mvc-based WEB application

Source: Internet
Author: User
Tags representational state transfer

The ASP. NET MVC Framework has the following advantages:

    • It is easy to divide the application into the complexities of model, view, and controller management.
    • It does not use view state or server-based forms. This makes the MVC framework particularly suitable for developers who want full control over the behavior of the application.
    • it uses a single-controller front-end controller mode to process WEB application requests. This enables you to design applications that support a rich routing infrastructure. for more information, see Front-end controllers on the MSDN Web site.
    • It provides better support for test-driven development (TDD).
    • It is ideal for developers of large teams supported by Web applications and for Web designers who require a high degree of control over the behavior of the application.

Advantages of Web Forms based on Web applications

The Web forms framework has the following advantages:

    • it supports an event model that facilitates the development of a reserved state for line-of-business Web applications over HTTP. Web Forms-based applications provide many events that support hundreds of server controls.
    • it uses a page controller mode to add functionality to a single page. for more information, see page Controllers on the MSDN Web site.
    • It makes it easier to manage state information by using view state or server-based forms.
    • It is ideal for small teams of Web developers and designers who want to take advantage of a large number of components available to quickly develop applications.
    • In general, it is less complex for application development because components ( Page classes, controls, and so on) are tightly integrated and typically require less code than the MVC model.
Features of the ASP. NET MVC Framework

The ASP. NET MVC Framework provides the following features:

  • Separate application tasks (input logic, business logic, and UI logic), testability, and test-driven development (TDD) are by default. All core contracts in the MVC framework are interface-based objects that can be tested by using mock objects, which mimic the behavior of objects in the actual application. You can unit test the application without running the controller in the ASP. NET process, which makes unit testing both fast and flexible. You can use any unit test framework that is compatible with the. NET Framework.
  • Extensible and pluggable framework. The components of the ASP. NET Framework are designed so that they can be easily replaced or customized. You can insert your own view engine, URL routing policy, action method parameter serialization, and other components. the ASP. NET MVC Framework also supports the use of the Dependency injection (DI) and control inversion (IOC) container models. DI allows you to inject an object into a class rather than relying on a class to create the object itself. IOC Specifies whether an object requires another object, and the first object should get a second object from an external source such as a configuration file. This makes testing easier.
  • A powerful URL mapping component that allows you to build applications with understandable and searchable URLs. URLs do not have to include file extensions and are designed to support URL naming patterns, work well with search engine optimization (SEO) and representational state transfer (REST) processing.
  • use existing ASP. NET pages (. aspx files), user controls (. ascx files), and markup files in the master page (. master file) as support for view templates. You can use existing ASP. NET features with the ASP. NET-MVC framework, such as nested master pages, lines in expressions (<%=%>), declaring server controls, templates, data binding, localization, and so on.
  • support for existing ASP. ASP. NET MVC allows you to use forms authentication and Windows authentication, URL authorization, membership and roles, output and data caching, session and profile state management, health monitoring, configuration system, and provider architecture capabilities.

This article was originally created on January 27, 2009


Original:

Advantages of an mvc-based WEB application

    • It makes it easier to manage complexity by dividing a application into the model, the view, and the Controlle R.
    • It does not use view state or server-based forms. This makes is the MVC framework ideal for developers who want full control over the behavior of an application.
    • It uses a Front Controller pattern that processes WEB application requests through a single Controller. This enables is a application that supports a rich routing infrastructure. For more information, SeeFront Controller   on the MSDN Web site.
    • It provides better support for Test-driven development (TDD).
    • It works for Web applications is supported by large teams of developers and web designers who need a high Degree of control over the application behavior.

Advantages of a Web forms-based Web application

The Web forms-based Framework offers the following advantages:

  • It supports an event model that preserves state over HTTP, which benefits line-of-business WEB application development. The Web forms-based application provides dozens of events is supported in hundreds of server controls.
  • It uses a Page Controller pattern that adds functionality to individual pages. For more information, see Page Controller on the MSDN Web site.
  • It uses view state or server-based forms, which can make managing state information easier.
  • It works well for small teams of Web developers and designers who want to take advantage of the large number of components Available for rapid application development.
  • In general, it's less complex for application development, and because the components ( the Page cl The tightly integrated and usually require less code than the MVC model.
Features of the ASP-net MVC Framework

The ASP. NET MVC Framework provides the following features:

  • Separation of application tasks (input logic, business logic, and UI logic), testability, and Test-driven development (TDD ) By default. All core contracts in the MVC framework is interface-based and can be tested by using mock objects, which is simulated O Bjects that imitate the behavior of actual objects in the application. You can unit-test the application without have to run the controllers in an ASP. Which unit makes FA St and flexible. You can use any unit-testing framework, which is compatible with the. NET Framework.
  • The
  • an extensible and pluggable framework. The components of the ASP. NET MVC framework is designed so, they can be easily replaced or customized. You can plug in your own view engine, URL routing policy, action-method parameter serialization, and other components. The ASP. NET MVC Framework also supports the use of Dependency injection (DI) and inversion of Control (IOC) container mode Ls. DI allows inject objects into a class, instead of relying on the class to create the object itself. IOC specifies that if a object requires another object, the first objects should get the second object from a outside so Urce such as a configuration file. This makes testing easier.
  • A powerful url-mapping component that lets you build applications that has comprehensible and searchable URLs. URLs do not have the to include File-name extensions, and is designed to the support URL naming patterns H engine Optimization (SEO) and representational state Transfer (REST) addressing.
  • The markup in existing ASP. NET page (. aspx files), user control (. ascx files), and master page (. master Files) markup files as view templates. You can use existing ASP. NET features with the ASP. NET MVC framework, such as nested master pages, in-line expressions (&L t;%=%>), declarative server controls, templates, data-binding, localization, and so on.
  • Support for existing ASP. Features. ASP. NET MVC lets you use features such as forms authentication and Windows authentication, URL authorization, membership a nd roles, output and data caching, session and profile state management, health monitoring, the configuration system, and The provider architecture.

This article is originally created on January 27, 2009

MVC-based advantages advantages of an mvc-based WEB application

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.