Explain request flow in ASP.Net MVC.


Below steps explain MVC request flow

  • Step 1: User requests any URL/resource.
  • Step 2: MVC routing engine parse the URL based on confogured route in routing table
  • Step 3: Invoke the matched controller action based on routing configuration.
  • Step 4: Controller's action process the user request and return response (response could be anything. it can be ActionResult or any premitive type string, int, HTTP response).
  • Step 5: Before returning response framework check for the return type of response, if retun type is view result then view engine comes in picture and render specific view.

Share this thread


comments powered by Disqus


Social Media