开发者

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:

  1. Call View()
  2. A ViewResult is created with the ViewData from the Controller being passed to it.
  3. ViewResult.ExecuteResult() is called.
  4. From this point I know that the ViewData is then passed once again to the ViewContext property of the ViewPage object.
  5. 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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜