I read an article on comparison between web form and MVC in my blog. I also wrote two sentences.
From a technical perspective, MVC should be the best choice for server-side solutions (Here we emphasize the server-side solutions to distinguish them from the client solutions)
Such as pure Ajax clients (such as exjs), Silverlight, and flex ). The principle behind Microsoft's product-based technology is simplicity and ease of use.
Form, not MVC, may be the product under the guidance of this principle. Simple and Easy-to-use as a product is king, but it is not necessarily the case for technology. The simpler the application, the more difficult it is to expand and the lack of customization, such as server-side controls. At this point, many people will argue that "Repeater
VS
In fact, the advantage of "repeter" is exactly the advantages of MVC. MVC is not only about full control of HTML, but also its elegance due to loose coupling. In practical applications, the advantage of webform is that it can continue its work on the fruits of others' work (existing third-party controls), while the binding of UI and business logic, and layout's customization costs will soon offset the previous advantages in daily development and maintenance. Write highly efficient webform pagesProgramDevelopers must have rich experience and have a deep understanding of the lifecycle of pages or controls. Server-side controls provide convenience while also providing many black boxes. At the same learning cost, it is easy to write an application with poor efficiency in webform, but not in MVC, it seems that you are always correct in a correct box, and you are always wrong in a wrong box. In a vague box, you may be more prone to mistakes. Microsoft has finally launched its own MVC framework.CommunityAnd insist that webform and MVC are two choices, but I prefer to think that this is Microsoft's recognition of the many inherent defects of webform and has to go back to the right path. Of course, this is my personal speculation ^_^
This document uses the unregistered version of blog_backup for export. Please register with soft.pt42.com.