What WebForm does is encapsulate html, css, and js. What is the encapsulation? Obviously, it is intended to encapsulate something similar to the GUI! I sometimes think that this is a big scam of Microsoft!
Microsoft wants to attract developers who are familiar with Windows GUI, including vb6, mfc, delphi, winform, and so on, as a later developer of Web development technology. After developers get on this "thief ship", they gradually transition to the technical direction that Web development should have! Maybe Microsoft knows the limitations of WebForm technology clearly when developing WebForm, however, we still need to shout out these ridiculous slogans, such as "developing Web websites like developing VB Programs, and developing websites with VB.
I am a Coder on this thief ship, but when I look back, I am very happy to be on this thief ship. I have analyzed the various internal implementation mechanisms of WebForm, but it is not the application of WebForm ), this gives me a better understanding of Web development!
I have a general view on Microsoft technology: If a camera is used as a metaphorMicrosoft is a professional camera installed with the dummies button.However, people think that this is a dumb camera because of this dumb button, so no one is playing with those professional adjustment buttons.
WebForm provides a fast RAD Application Development), while also providing professional adjustment buttons, that is, an infinite number of custom mechanisms, in theory, we can use these mechanisms to implement the various functions we need. In fact, we can do the same. The question is, should we do this?
If the answer is no, you must find a better way to do it? Or prove from the theoretical logic that this is unreasonable!
Obviously, my answer is: WebForm is basically a technology that should be discarded! In particular, it is meaningless to rely on <form runat = "server"> and ViewState, send back events, and other functions.
In view of this idea, I want to first talk to you about how to implement various common functions after Without WebForm in a series of articles titled "Aspx Without WebForm, at the same time, we will discuss new and exciting things brought about by these methods! Second, we also analyze from the theoretical perspective:Why is the encapsulation of html/css/js GUI futile?Not to mention server-side encapsulation. Even client-side encapsulation like YUI still bears a lot of losses to native functions of html, css, and js, and brings a lot of learning costs, therefore, it is impossible for Microsoft to do the same thing without doing a good job.
This article is from the "software Road" blog, please be sure to keep this source http://ruandao.blog.51cto.com/3168808/591368