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

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

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

6条回答
  •  清歌不尽
    2020-12-23 10:48

    I once got into this question too and got my answer from TRULY understanding Viewstate article, which I highly recommend.

    After reading it I designed a graphic that helped me to understand better what was happening on between each stage and when and how ViewState was doing its job.

    I'd like to share this graphic with other people that (like myself) need to see how stuff work in a more visual way. Hope it helps! :)

    Click on the image to view at full width.

提交回复
热议问题