Articles → ASP .NET MVC → Page lifecycle of asp.net mvc applicationPage lifecycle of asp.net mvc applicationIn this article, I will discuss about life cycle of an asp.net MVC application. But before we go ahead, let us learn some of the basic conceptsConcepts 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.Let us check the asp.net MVC life cycle.ASP.NET MVC life cycle From the end user perspective - Request is send on the server and response is received by the client (Web browser). But between sending the request and getting the response, there are number of steps that I will try to elaborate 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/Feedback Characters remaining 250
Query/Feedback