I: first, let's take a look at the inheritance structure and changes of the View in MVC2 and MVC3.
MVC2:
Description of the inheritance relationship .~~ The VIEW in MVC2 is closely related to the Page of WebForm.
Next let's take a look at the changes in MVC3.
MVC3 (WebForm version ):
As you can see, the classification of components is not "friendly", but MVC3 was just a short time ago. The document information is poor, and it will not hinder my progress! Here is the complete solution!
After so much trouble, the inheritance structure will be intact!
Transfer subject
MVC3 still supports the inheritance of a WebForm version.
There is no major change in comparison with the VIEW in MVC2 described above.
The change is as follows (that is, add)
MVC3 (WebPages ):
You can see [Zero WebForm! This is also a noteworthy highlight of MVC3!
If you do not know what WebPages are added in. NET 4, I will briefly introduce them here:
The WebPages are specifically designed by WebMatrix to provide*. CshtmlAnd*. VbhtmlAndRazorSupported.
Installation Directory: C: Program FilesMicrosoft ASP. NETASP. NET Web Pages
Conclusion: from the above introduction, we finally learned why two VIEW creation types appear in VS2010, and the difference between them is that
What we can tell you exactly here is that MVC3 does indeed increase in assembly size compared with MVC2 ~
I will introduce the newly added WebPages function of View in another article ~
It mainly compares MasterPage and LayoutPage!
This article ends now!
DotNetDR _ Shenzhen lights up the candle of hope