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.