1.

Explain MVC application life cycle

Answer»

Application life cycle is simply a series of steps or events used to handle some type of request or to change an application state.it uses the HTTP as a protocol to SEND the request on the browser, One thing that is true for all these platforms regardless of the technology is that UNDERSTANDING the processing pipeline can help you better leverage the features available and MVC is no different.

There are 2 different life cycle used in Asp.Net MVC:-

  1. Application Life Cycle
  2. Request Life Cycle

Application life cycle helps in getting to know that IIS will start working till its TIME will stop.

First, the request will find the routing method which is defined under the RouteConfig.cs, where there is a controller and its action method, is defined in the URL, after the controller has been created,actually begins running IIS until the time it stops,A component called the action invoker finds and selects an appropriate Action method to invoke the controller,MVC separates declaring the result from executing the result. If the result is a view type, the View Engine will be called and it's responsible for finding and rendering our view, If the result is not a view, the action result will execute on its own. It displays the ACTUAL HTTP result during the execution of the request



Discussion

No Comment Found