asp.net MVC key Tutorial First Anniversary Edition controller and view

Source: Internet
Author: User

In this section, we let asp.net mvc really run.

First, new controller

First, we create a new controller on the controllers, add, controller options.

 

Then a dialog box appears:

 

Here we'll name it Eicecontroller.

Note that this is a pure ad, no interest to skip this line: www.eice.com.cn for you to build Web2.0 social networking site

The default generated code is as follows:

//记不记得前面讲过的,所有 Controller都要继承于Controller类
  public class EiceController : Controller
  {
    public ActionResult Index()
    {
      return View();
    }
  }

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.