My Asp.net MVC Learning Process

Source: Internet
Author: User

Asp.net MVC, a good thing I found some time ago, has learned a little in my spare time (the materials are all found in the garden ), write down what you have learned here and review it on your own. Because of your limited ability, you have not studied it in depth. If you are not familiar with it, please give me more advice, thank you! (I am using the beta version. The RC version is not installed yet, so the example is also a beta version .)

Common sense is limited, so I do not make too many comparisons between webform development and Asp.net MVC development. Both of them can achieve the expected functions. I also try to learn, however, I have learned a lot through a one-click study, and I have learned a lot. I have developed many new implementation methods and ideas in webform.

I am not used to accessing Asp.net MVC at the beginning. Maybe I am used to event-driven development. I am not very familiar with <%>, and I still have to look down on form, so it is a bit awkward to learn. This request mode should be easier for friends who are familiar with ASP.

Asp.net MVC is URL-driven. That is to say, by entering the URL address, you can customize maproute in urlrouting, that is, matching the Controller requested by the user by writing the Regular Expression in sequence, and which action event will be processed by action. In the action, you can access data from the model and return view (); to return the page (View) to be displayed ). This is a request process. In the future, we will describe the usage of each part in detail.

Asp.net MVC does not provide PostBack and viewstate in webform. Therefore, some processing methods cannot be used. It solves the problem of repeated webform form submission. It is difficult to control a large number of viewstates and control styles on the page. Of course, these problems can be solved .. It also brings about some problems, such as adding the page display logic (no control.

According to others, Asp.net MVC is flexible and can be compiled and used by myself, and it is easier to test the controller. However, I won't write too much about it. After all, my capabilities are limited.

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.