Execute an MVC Application

Ratings:
(4)
Views:0
Banner-Img
  • Share this blog:

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

 

You liked the article?

Like : 0

Vote for difficulty

Current difficulty (Avg): Medium

Recommended Courses

1/15

About Author
Authorlogo
Name
TekSlate
Author Bio

TekSlate is the best online training provider in delivering world-class IT skills to individuals and corporates from all parts of the globe. We are proven experts in accumulating every need of an IT skills upgrade aspirant and have delivered excellent services. We aim to bring you all the essentials to learn and master new technologies in the market with our articles, blogs, and videos. Build your career success with us, enhancing most in-demand skills in the market.


Stay Updated


Get stories of change makers and innovators from the startup ecosystem in your inbox