Page controller and Front Controller)

Source: Internet
Author: User

Page Controller(Page Controller) andFront Controller(Front-end Controller) as the two web design methods have their own advantages and disadvantages.

Because the page controller is implemented by Asp.net by default, It is very convenient to use. Generally, the view on the page uses the. inc file to define the shared part. The page controller creates a controller for each page. If there are many pages, it may not be easy to maintain. Even if a public base class is used, the logic of the base class is too complex.

The Front Controller puts all the control in one controller, but it must be implemented by itself. If the logic of the base class is not complex, it is generally not used. Displays the processing of the controller.ProgramPart of the structure, whereHandlerClass is responsible for processing various Web requests, and will determine the correctCommandAssign this roleCommandfactoryClass. WhenCommandfactoryReturnCommandAfter the object,HandlerCallCommandOnExecuteMethod to execute the request

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.