多视图控件如何处理其视图状态?
多视图控件是否包含其每个视图的视图状态信息,无论视图当前是否可见?
Does the Multiview control contain the viewstate information for each of its views regardless of whether or not the view is currently visible?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(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.
我相信是的,是的。 使用 ViewState Decoder 进行确认非常简单(google 一下,Fritz Onion 提供了一些工具或 FireFox 插件)。
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).
是的,所有视图仍然存在,只是不活动的视图被隐藏/禁用。
http://msdn.microsoft.com/ en-us/library/system.web.ui.webcontrols.multiview_properties.aspx
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