In which event of Page cycle is the ViewState available?
Category:
technology and computing
web development
That the view state is loaded during the Load phase of the page lifecycle, i.e. the LoadViewState method of the "Page methods" and the LoadViewState method of the Control methods, above. The Viewstate is actually loaded in the OnPreLoad event of the page,Just after the Page_InitComplete.
Just so, at which event of page life cycle the master page is loaded?
Master pages behave like child controls on a page: the master page Init event occurs before the page Init and Load events, and the master page Load event occurs after the page Init and Load events.
Considering this, what is the last event of web page life cycle?
When an ASP.NET page runs, the page goes through a series of events. These step by step events are called as page life cycle. The first event is Page_PreInit and last event is Page_Unload.
ASP.NET Page Life Cycle includes events PreInit, Init, InitComplete, OnPreLoad, Load, PostBack, LoadComplete, OnPreRender, OnSaveStateComplete, Render, and UnLoad.