LoadViewState is called during the initialization of a page postback. It restores the state of the controls as they were during the previous rendering. This is important to determine the events to fire (for example, if a drop down list was previously at index 0 and is now at index 5 the server knows the user changed the DDL item).
SaveViewState takes all the states of the controls and serializes them into the viewstate value emitted to the page.
You can add custom viewstate actions by overriding those methods, but you need to ensure you call the base class LoadViewState method before you try to access view state data and similarly you need to call the SaveViewState method after you do your modification otherwise your data won't be stored.
As to why it's not firing? That's hard to say. How are you determining it is not firing? Does the page and/or application have viewstate disabled?
-
Peter