Tuesday 9 August 2016

Page Request flow in ASP.NET MVC

Posted by : Manav Pandya

Here i have displayed basic Page Request flow in ASP.NET MVC page

I tried to convey Request flow whenever ASP.NET MVC Project will be executed 

Steps are follow :

Step 1: User requests any URL/resource.


Step 2: MVC routing engine parse the URL based on configured 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 primitive type string, int, HTTP response).


Step 5: Before returning response framework check for the return type of response, if return type is view result then view engine comes in picture and render specific view.