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

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

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

6条回答
  •  天涯浪人
    2020-12-23 11:08

    You can see from the page life cycle as explained on MSDN

    enter image description here

    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.

提交回复
热议问题