Home > ASP.NET MVC > ASP.NET MVC Application Execution Process

ASP.NET MVC Application Execution Process

Stage Details
Receive first request for the application In the Global.asax file, Route objects are
added to the  RouteTable object.
Perform routing The UrlRoutingModule module uses the first matching Route object in the RouteTable collection to create the
object, which it then uses to create a
Create MVC request handler The MvcRouteHandler object creates an instance of the MvcHandler class and passes the RequestContext instance to the handler.
Create controller The MvcHandler object uses the RequestContext instance to identify the IControllerFactory object (typically an instance of the DefaultControllerFactory class) to create the controller
instance with.
Execute controller The MvcHandler instance calls the controller’s
Invoke action For controllers that inherit from the ControllerBase class, the ControllerActionInvoker object that is associated with the controller determines which action method of the controller class to call, and then calls that method.
Execute result The action method receives user input, prepares the appropriate response data, and then executes the result by returning a result type. The built-in result types that
can be executed include the following: ViewResult (which renders a view and is the most-often used result
type), RedirectToRouteResult, RedirectResult, ContentResult, JsonResult, FileResult, and EmptyResult.

  1. May 31, 2012 at 5:53 PM

    This is the right weblog for anybody who desires to search out out about this topic. You notice a lot its nearly exhausting to argue with you (not that I truly would want…HaHa). You positively put a brand new spin on a subject thats been written about for years. Great stuff, just nice!

  2. May 31, 2012 at 6:28 PM

    After study a number of of the blog posts on your web site now, and I actually like your means of blogging. I bookmarked it to my bookmark web site listing and will likely be checking back soon. Pls try my site as nicely and let me know what you think.

  3. June 5, 2012 at 9:09 PM

    An outstanding share! I have just forwarded this onto a coworker who was conducting
    a little homework on this. And he in fact ordered me dinner
    due to the fact that I found it for him..

    . lol. So let me reword this…. Thank YOU for the
    meal!! But yeah, thanks for spending some time to
    discuss this topic here on your site.

  4. June 12, 2012 at 1:53 PM

    Thank you all of you

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: