Articles → ASP .NET MVC → Page Lifecycle Of Asp.Net Mvc Application

Page Lifecycle Of Asp.Net Mvc Application






Concepts


  1. Routes table – Route table stores routes information of the application.
  2. Request context object - Request context encapsulates information about the http request.
  3. MVC controller factory – It maps the incoming request to the appropriate controller.



ASP.NET MVC Life Cycle




  1. A request is raised to the server (RequestContext ).
  2. URLRoutingModule intercepts the request, checks the route table and finds the matching route.
  3. Once the matching route is found, request goes to the MVCRouteController.
  4. MVCRouteHandler identifies the instance of MVCHandler.
  5. MVCHandler checks the MVC controller factory and gets the instance of the controller.
  6. Controller instance identifies the action method using IActionInvoker.
  7. IActionInvoker calls the execute method to execute the action method.
  8. After the execution is done, ActionResult is returned as response.
  9. The response is send back to the client.



Posted By  -  Karan Gupta
 
Posted On  -  Sunday, January 22, 2017

Query/Feedback


Your Email Id
 
Subject
 
Query/FeedbackCharacters remaining 250