Execute of MVC Application in ASP .NET

  8  

Step 1: Client sends a request for the application to IIS

Step 2:  IIS will redirect the request to the global.asax file 2Hear route table collection will be created by adding all the routes.  

Step 3: Perform Routing --> hear URL routing module will check for the requested route in route table collections. 2If a route is not available in the route collection table error message will be sent to the client. 2If the requested route is available create a route object and then also create a request object.  

Step 4: Create an MVC request handler:-

2Hear MVC route handler class will take the route from route object and create an object for the MVC handler class bypassing the request context object. 2Hear request context object originally responsible to pass the request from ASP.net to MVC.

Step 5: Create a controller:-

2Hear MVC handler class identifies the controller that is to be executed with the help of request context object by using the route object. 2It creates an object to the controller class.  

Step 6:  Execute controller:-

2Hear execute method of the controller class will be called to start the execution of controllers.  

Learn ASP.Net by Tekslate - Fastest growing sector in the industry. Explore Online "ASP.Net Training" and course is aligned with industry needs & developed by industry veterans.Tekslate will turn you into ASP.Net Expert.

Step 7: Invoke action:-

2At this step MVC “run time will identify which action method should be called for execution and will invoke that method.”  

Step 8: Execute result:-

2Hear code in action method will be executed by using data from the model class 2Controller will be returned to view  

Step 9: Execute view:-

2In this step, the complete view code will execute by using the model class data if necessary.  

Step 10:

2The executed result sends to client 2Once the result is delivered to the client the execution result is completely destroyed at the server The types of result that an MVC application can handle take

  1. View result
  2. Redirect to route result
  3. Redirect result
  4. Content result
  5. JSON result
  6. File result

Empty result

For in-depth understanding click on