arithma
What's the last event in a page that can still affect the page's viewstate dictionary, beyond which the viewstate is impossible to change?
I was thinking it could be Unload, but I can also implement Dispose.
I still haven't tested this yet.
arithma
The way I decided to go back then is to override the SaveViewState. Thanks for the link.
Formally, it appears from this graph, the very last event that could be handled before the saveviewstatecomplete is called is PreRenderComplete (not overriding the OnPreRenderComplete).
Going with the overriding is better just in case something in the future gets added into this page lifecycle between saveviewstate and prerendercomplete.