[Import] Web client software factory series (3): View-presenter mode

Source: Internet
Author: User
Abstract: an ASP. NET site is separated into multiple independent modules. The biggest problem is that most of the business logic associated with the page resides on the page. Source codeFile, we almost cannot CodeFiles are divided into multiple independent ProgramSet. To create an independent function module that is associated with pages on the site, all page logic, event processing logic, and navigation logic must be extracted from the page in some way and stored in an independent set of programs.

The default solution in the Web Composite Application Block is to use the view-presenter mode to divide the page logic into different classes (proxies) used to respond to any event forwarded by the view (web page ). The representations class is fully implemented in the business module, so that the application logic is out of the website. interfaces are defined in the business module that defines the methods implemented by the view. In this way, the web page can forward all events to the dashboard at the end, without any actual responsibilities specific to the application. This also makes it easier to test the design dashboard without actually involving the front-end web page. Read the full text

Terrylee comments

ArticleSource: http://www.cnblogs.com/Terrylee/archive/2007/11/27/Web-Client-Software-factory-view-presenter.html

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.