Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In ASP.Net, during which page lifecycle event does viewstate get loaded?

Tags:

I know it happens sometime before Load, but during what event exactly?

like image 693
user9991 Avatar asked Sep 18 '08 17:09

user9991


People also ask

In which event of Page cycle is the view state available?

ViewState is available between Init and Load event.

In which Page cycle all controls are fully loaded?

Page load event guarantees that all controls are fully loaded. Controls are also accessed in Page_Init events but you will see that view state is not fully loaded during this event.

What happens in Preinit event of a page?

The event enables you to set values that are used later in the page life cycle. You can dynamically set a master page or a theme for the requested page, and create dynamic controls.

What is the flow of page event in ASP.NET page?

The Asp.net page life cycle includes the events preinit, Init, InitComplete, OnPreLoad, Load, LoadComplete, OnPreRender, and OnSaveStateComplete. These events take place whenever an ASP.NET page is requested.


1 Answers

It's loaded into memory between init and load. See this article for a full break down of the page lifecycle.

like image 130
Kilhoffer Avatar answered Sep 18 '22 14:09

Kilhoffer