Execution Process of MVC Application
When we execute the MVC application it will process in the following steps:
1) Receive first request for the application:- In the Global.ascx file, the route of application is decided, by adding the route object in route table.
2) Performing Routing:- The URLRoutingModule uses the first matching Route object in the route table collection, which is uses to crate a Request Context object
3) Create MVC request handler:- The MVCRouteHandler object create an instance of the MVCHadler class and passes it the RequestContext instance.
4) Create Controller:- The MVCHandler oject uses the RequestContext instance to identify Controller
5) Execute Controller:- The MVCHandler instance call the controller execute method.
6) Invoke Action:- The ControllerAcctionInvoker object is associated with the controller determine wwhich action method of the controller class to call and then call the method.
7) Execute Result:- A typical action method might receive user input, prepare the appropriate response data and the execute the result by returning a result type.
1) Receive first request for the application:- In the Global.ascx file, the route of application is decided, by adding the route object in route table.
2) Performing Routing:- The URLRoutingModule uses the first matching Route object in the route table collection, which is uses to crate a Request Context object
3) Create MVC request handler:- The MVCRouteHandler object create an instance of the MVCHadler class and passes it the RequestContext instance.
4) Create Controller:- The MVCHandler oject uses the RequestContext instance to identify Controller
5) Execute Controller:- The MVCHandler instance call the controller execute method.
6) Invoke Action:- The ControllerAcctionInvoker object is associated with the controller determine wwhich action method of the controller class to call and then call the method.
7) Execute Result:- A typical action method might receive user input, prepare the appropriate response data and the execute the result by returning a result type.
Comments
Post a Comment