ASP. NET MVC 4 Getting Started

Source: Internet
Author: User

The MVC design pattern breaks down Web applications into three parts: models (Models), attempts (views), and controllers (Controllers), each of which accomplishes different functions to implement Web applications.

The view represents the user interface, which can be generalized as an HTML interface for Web applications, but it can be XHTML, XML, and applets. The MVC design pattern handles the view only for data collection and processing on the view, as well as for the user's request, not including the processing of the business process on the view. The processing of business processes is delivered to the model.

Model is the processing of business processes/States and the development of business rules.

The controller can be understood as receiving requests from the user, matching the model to the view, and collectively completing the user's request. The role of partition control layer is also obvious, it is a dispatcher, choose what model, view, you can complete what kind of user request.

The second model may correspond to multiple views, and one view may correspond to multiple models.

Third, the MVC design pattern has the following advantages:

1. You can establish and use multiple views for the model at run time.

2, the view and the controller pluggable, allows the exchange of views and controller objects, and can be dynamically opened or closed according to demand, even during the operation of the object replacement.

3, the portability of the model.

4, the potential framework structure. The application framework can be established based on this model, not only in the design of the interface.

The ASP. NET MVC framework maps URLs to the server's code: Instead of mapping URLs to an ASP. NET page or processor, it maps URLs to the controller class.

ASP. NET MVC 4 Getting Started

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.