Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx_professional thread: Overrided LoadViewState and SaveViewState


Message #1 by "Brandon Levitt" <levittbr@m...> on Fri, 30 Aug 2002 15:36:42
I've written a composite control that inherits from the webcontrol class.  
I've overrided the loadviewstate and saveviewstate.  The first thing that 
I've noticed is that both are called twice (instead of once as I would 
expect).  Why?  Next, as an experiment, I have the control recurse by 
creating an instance of itself.  The parent loadviewstate and 
saveviewstate acts as they should loading and saving an array of objects.  
The child loadviewstate however seems to recieve a system.web.ui.pair 
object rather than the array of objects that I expect.  Why?

  Return to Index