The combination of practice and theory is a way to learn any technology well.ArticleGoing deep into the MVC pattern concept and ASP. net mvc and ASP. NET webforms features and learning through a demo, I think Asp.net MVC will be further understood.
First, emphasize the collaboration between Asp.net MVC components:
I,URL Routing(A component independent of Asp.net MVC is not publicly availableSource code)
Asp.net MVC is URL-driven. After a URL comes in, it is divided into multiple parts based on the URL. Asp.net routing is used to determine several parameters based on pre-configured URL rules: Controller & Action & paramters. Next we will know to call the Action Method in controller and pass it to the parameter paramters of the Action method.
In other words, the URL routing can be obtained according to the URL:
1. Controller name
2. Action name
3. Action paramters
2. Controller & Action excute
The Controller (class) and Action (method) can be determined based on the request URL ).
Execute the presentation logic in action ----- operate model, obtain data, and select View and etc.
After the action is executed, an actionresult is returned, that is, HTML or page Jump is generated using view.
Iii. view rendering
Viewengine replaceable (. aspx,. ascx,. Master by default)
Mvccontrib provides four additional viewengines. Http://www.CodePlex.com/MVCContrib
In addition, I would like to mention the important concepts of Asp.net MVC ---------Conventions are better than configurations(Convention over configuration) (configuration can bring about scalability and complexity .)
Iv. Typical Asp.net Cases
Here I will take a look. In fact, the classic Asp.net MVC case in the blog is the index post of ASP. NET MVC case tutorial of leoo2sk. I personally think this case is classic and can quickly familiarize myself with the development of Asp.net MVC, which is easy to use. We recommend that you learn it step by reference to the case study. I believe that after reading this article, you will get started with Asp.net MVC development.
Best regards
Charles Chen
Email: gotosunny@msn.com