Asp.Net MVC Controller

    All controllers inherit from Controller, Controller located System.Web.Mvc namespace, inherited from ControllerBase class, ContrallerBase implements the interface Icontraller Interface

Excute the method, in the router receiving the cable and a corresponding method of operation of a controller by a process Excute method.

   Controllerbase categories:

  task

   1, Location: find the corresponding method of operation

   2, acquisition parameters: an operation method acquisition parameters

   3, processing error: error which may occur in the operation of the method of execution

   4, rendering the view: it provides a default WebFormViewFactory class to render Asp.Net view

  Attributes

  1, ControllerContext: Gets or sets the controller context

  2, ValidataRequst: Gets or sets a value, whether the value for this prompt request validation request

  3, ValueProvider: Gets or sets the controller

  4、ViewData

  5、ViewBag

  6 TempData

Guess you like

Origin www.cnblogs.com/zjifafengfang/p/12047914.html