View changes in ASP. net mvc 3

Source: Internet
Author: User

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!

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.