Learning Summary (ASP. NET MVC 5)

Source: Internet
Author: User

1. Whenever you want to write a new MVC program (Web site), the first step after opening vs is always "create a new ASP. NET MVC Project"

("New Project"-→ "web (Visual C #)"-→ "ASP. NET Web Application")

          Select the "Empty template" option and check the "MVC" checkbox in the "Add folder and Core references" section

2. In the MVC architecture, the input request is handled by the Controller (a C # class that inherits from "Syster.Web.Mvc.Controller")

3. Each public method in the controller ("Class", of course, has a method) is called an action method --it can be called by a URL to perform an action via the WEB

4. In order to generate an HTML response to a requestfrom the browser, you need to create a view

5. When returning an ViewResult object from an action method, you are instructing MVC to render a view. (Calling the view method without parameters is telling MVC to render the default view of the action)

Learning Summary (ASP. NET MVC 5)

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.