I: first, let's take a look at the inheritance structure and changes of the View in MVC2 and MVC3.
ASP. net mvc 2:
Description of the inheritance relationship .~~ The VIEW in ASP. net mvc 2 is closely related to the Page of WebForm.
Next let's take a look at the changes in ASP. net mvc 3.
ASP. net mvc 3 (WebForm version ):
As you can see, the partial classification is not "friendly", but ASP. net mvc 3 has just arrived. The document information is too bad. It will not hinder my progress! The entire process is complete!
After so much trouble, the inheritance structure will be intact!
Transfer subject
ASP. net mvc 3 still supports inheritance of a WebForm version.
Here we will compare it with the VIEW in ASP. net mvc 2 described above, so there will be no major changes.
The change is as follows (that is, add)
ASP. net mvc 3 (WebPages ):
Here we can see the figure of [zero WebForm! This is a noteworthy highlight of ASP. net mvc 3!
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 *. cshtml and *. vbhtml and Razor support.
Installation Directory: C: \ Program Files \ Microsoft ASP. NET \ ASP. NET Web Pages
Conclusion: from the above introduction, we finally learned why two VIEW creation modes appear in Visual Studio 2010, and the difference between them is that
Here, we can tell you exactly that ASP. net mvc 3 has indeed increased the Assembly size compared with ASP. net mvc 2 ~
I will introduce the newly added WebPages function of View in another article ~
It mainly compares MasterPage and LayoutPage!