- Request comes in to /Home.
- IIS determines the request should be handled by ASP.NET.
- ASP.NET gives all HttpModules a chance to modify the request.
- The UrlRoutingModule determines that the URL matches a route configured in the application.
- The UrlRoutingModule gets the appropriate IHttpHandler from the IRoute-Handler that is used in the matching route (most often, MvcRouteHandler) as the handler for the request.
- The MvcRouteHandler constructs and returns MvcHandler.
- The MvcHandler, which implements IHttpHandler, executes ProcessRequest.
- The MvcHandler uses IControllerFactory to obtain an instance of IController using the "controller" to route data from the route {controller}/{action}/{id}.
- The HomeController is found, and its Execute method is invoked.
- The HomeController invokes the Index action.
- The Index action adds objects to the ViewData dictionary.
- The HomeController invokes the ActionResult returned from the action, which renders a view.
- The Index view in the Views folder displays the objects in ViewData.
- The view, derived from System.Web.Mvc.ViewPage, executes its Process-Request method.
- ASP.NET renders the response to the browser.
Friday, March 2, 2012
ASP.NET Pipeline for MVC
Subscribe to:
Posts (Atom)
Check This Out!
More Links to Good Information
- December (1)
- October (1)
- January (1)
- September (1)
- February (2)
- January (2)
- May (3)
- February (1)
- May (1)
- October (1)
- January (1)
- August (1)
- March (1)
- May (1)
- March (1)
- January (1)
- March (1)
- December (2)
- September (2)
- June (1)
- February (1)
- January (1)
- October (1)
- December (2)
- November (1)
- August (4)
- July (14)
- June (10)
- May (9)
- April (2)
- February (4)
- January (2)
- December (7)
- October (10)