The difference between WebForms and MVC

Source: Internet
Author: User

WebForms is familiar to an ASP. I've come into contact with WebForms from the beginning of the programmer, and I personally think that one of the features of WebForms is the frequent application of server-side controls and the code behind. So before chatting with a friend (Java programmer), he would often be more contemptuous of the said, ASP. NET development is very simple, not just drag some controls, write a small amount of code. Often hear these words, I never go to refute, because with a not knowledgeable people arguing, can only be a waste of time, so I just smiled. When I learned from the new ASP. NET, I felt that the MVC development pattern was quite popular, so I started to look at the MVC definition and compared it with the previous WebForms.

By comparison I think MVC's page response time is faster. Second, bandwidth consumption is less. The main factors that affect WebForms page speed are server-side space and code behind. The MVC pattern is more clearly divided, and the view layer is the presentation of the data, pure HTML. The controller layer is responsible for the client request, which is primarily a logical design. The model layer is the extraction of data, usually the connection to the database.

In the article I learned, I found that the author proposed a more granular layering, that is, between the view layer and the controller layer, there is a viewmodel layer to complete the data returned by the controller layer to integrate, and then passed to the view layer display, The other is the busniess layer, which exists between the controller layer and the model layer, which consolidates the data returned from the database and then transmits it to the controller layer.

The above is my webforms and mvc some understanding, should still exist to understand there is no place, hope to see this article of friends advice. We can discuss the research together and make progress together.

The difference between WebForms and MVC

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.