问题
Does the Multiview control contain the viewstate information for each of its views regardless of whether or not the view is currently visible?
回答1:
Yes it does, all the views are still there, just the inactive ones are hidden/disabled.
http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.multiview_properties.aspx
回答2:
I believe so, yes. It would be quite simple to confirm using a ViewState Decoder (google it, there are tools available from Fritz Onion or as FireFox plugins).
回答3:
I would have to assume that the viewstate contains information for each of a Multiview's views/controls. Otherwise, there's no way it would be able to keep track of the state of the controls in each view- unless you were using some sort of custom state management.
来源:https://stackoverflow.com/questions/76534/how-does-the-multiview-control-handle-its-viewstate