How does the Multiview control handle its Viewstate?

回眸只為那壹抹淺笑 提交于 2020-01-04 14:09:19

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!