ASP. NET MVC3 series tutorial-View changes

Source: Internet
Author: User

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

Related Article

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.