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

后端 未结 6 2152
甜味超标
甜味超标 2020-12-23 10:26

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

6条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-23 10:57

    That is to say, viewstate is loaded between the OnInit() and OnLoad() events of the page.

    My favorite article on dealing with viewstate, which answers every question I have every time: http://weblogs.asp.net/infinitiesloop/archive/2006/08/03/Truly-Understanding-Viewstate.aspx

提交回复
热议问题