ASP.Net MVC Question:
Download Questions PDF

Explain ASP.NET MVC Request Life Cycle?

Answer:

Following are the steps that are executed in ASP.NET MVC Request Life Cycle.

1. Application first receives the request and looks up Route object in RouteTable collection. Then the RouteData object is created.

2. Then RequestContext instance is created.

3. MvcHandler and pass RequestContext to handler is created.

4. Then IControllerFactory from RequestContext is identified.

5. Then the object of class that implements ControllerBase is created.

6. MyController.Execute method is called.

7. Then ControllerActionInvoker finds the action to invoke on the controller and executes that action on the controller and by calling the model associated view returns.

Download ASP Dot Net MVC Interview Questions And Answers PDF

Previous QuestionNext Question
Explain the page lifecycle of an ASP.NET MVC?Explain program to call the js function when the change is being made in the Dropdown list made in ASP.NET MVC?