asp.net-mvcviewpage

ASP.NET MVC ViewPage Lifecycle


I would like to know when (which event/function) the class System.Web.Mvc.ViewPage runs when it reads the @Page directive of the view.

In particular, I would like to programmaticly interpret the values of the @Page directive, override them, then have the cycle continue.


Solution

  • This SO question / answer should help you with what you need:

    What is the 'page lifecycle' of an ASP.NET MVC page, compared to ASP.NET WebForms?