ASP.NET MVC ViewPage execution
I am (roughly) tracing the steps that are taken to generate a view once you call return View();
from within a controller method.
Thus far I have gotten these steps:
- Call View()
- A ViewResult is created with the ViewData from the Controller being passed to it.
- ViewResult.ExecuteResult() is called.
- From this point I know that the ViewData is then passed once again to the ViewContext property of the ViewPage object.
- Magic happens and the ViewPage is sent to the output stream.
There are a lot of steps missing here, does anybody know of a good resource that traces the execution fl开发者_高级运维ow?
Cheers!
Chris
You could always download the source and step through the code to get a better look at what is going on.
精彩评论