Friday, 22 May 2020

MVC Life Cycle



MVC Life Cycle
MVC Life Cycle

  1. Creating the request object: -The request object creation has four major steps. Below is the detail explanation of the same.
  2. Step 1 Fill route: - MVC requests are mapped to route tables which in turn specify which controller and action to be invoked. So if the request is the first request the first thing is to fill the route table with routes collection. This filling of route table happens in the global.asax file.
  3. Step 2 Fetch route: - Depending on the URL sent “UrlRoutingModule” searches the route table to create “RouteData” object which has the details of which controller and action to invoke.
  4. Step 3 Request context created: - The “RouteData” object is used to create the “RequestContext” object.
  5. Step 4 Controller instance created: - This request object is sent to “MvcHandler” instance to create the controller class instance. Once the controller class object is created it calls the “Execute” method of the controller class.
  6. Creating Response object: - This phase has two steps executing the action and finally sending the response as a result to the view.


You can find more blogs on our website: Trigya Technologies

No comments:

Post a Comment

Steps to resolve VAPT Issues

    1. Error: Web Parameter Tampering Resolution:   Add attribute " enableViewStateMac = " false " " inside  <pages...