ASP. net mvc application case

Source: Internet
Author: User
Tags classic asp

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

 

 

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.