Introduction to MVC

Source: Internet
Author: User

1. URL route mapping (URL routing resolution).

2. Razor view.

3. Controller (C), view (V),

4. Mvc simple additions and deletions to change the search.

5. MVC design Pattern: Ability to invoke the same business based on different requests, but render in different views. Mainly through the controller, the business and views are separated.

6.. NET MVC Framework (Conventions larger than configuration): Based on MVC design patterns.

7. The main way to accept browser-side data in the console:

(1) Accept parameters with the same name configured in URL routing

(2) Receiving via request.form/request.querystring

(3) receiving via FormCollection

(4) Receive by model binding

8. The action method outputs the primary way to return a value:

(1) return the corresponding string directly

(2) by loading the view Viewresult

(3) Returns the JSON string Jsonresult

9. Action specifies the use view

Introduction to 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.