First experience the aspnet mvc Framework

Source: Internet
Author: User
Tags asp net
Once we see MVC, it is estimated that everyone will not be unfamiliar. This is the classic project framework structure in Java. Especially in Java Web development, MVC frameworks are very mature. When developing classic ASPnet pages for a long time, I envy Java's flexibility in Web development. JSP pages do not have bloated viewstate and complex page cycles, so developers can precisely control them. Program Of course, this control will add some Code .
This time, DOTNET also has its own MVC Framework. At first, I began to wonder if it was an adaptation of a common three-tier architecture on the network, or a new automatic code generation framework. After being installed and used, it is found that the aspnet mvc framework is very different from the classic ASPnet framework. It can be said that it is two different development methods. The implementation process of asp net mvc is similar to that of Java MVC framework. If you are used to the original development method of ASPnet, it is estimated that it is difficult to accept the development method of the asp net mvc framework. In this framework, viewstate is rarely used to save the page state, and the status is maintained through post, form action, and other methods. The convenient event-driven development method of the ASPNET page has also been abandoned. You cannot see the event window by clicking the control on the interface, and you cannot intelligently detect the addition of events in the code, it is estimated that the event will affect the form action, because the Controller action in MVC is implemented through action. Another obvious change is the change in the access address. Address Access is no longer the full name of a fixed access to a page. Instead, it accesses the Controller first, and then displays the page content through the Controller. It is estimated that MVC can be understood. The access address method introduces the address ing association method. This function can also be implemented in 2.0, using test. aspx? The URL id = 34 is accessed in the form of test/34, which is similar to the serverlet access method in Java.
The obvious change does not mean that the original ASPnet functions are not used or may cause programming troubles, but as a Microsoft product, in terms of operation, it will certainly be compatible with the original functions of ASPnet and allow you to use the new framework with ease. In actual development, combined with vs2008 and some built-in code automatic generation functions of the framework, more importantly, with the use of LINQ, the development efficiency should not be inferior to the original ASPnet framework.
I have not been able to fully understand the working principles of Alibaba Cloud. I will continue to learn about it.

Appendix: asp net mvc web site http://www.asp.net/mvc/

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.