在多视图超时中查看
基本上我想做的是“超时”视图。类似于一段时间后的 JavaScript 重定向,只不过不是重定向,而是切换到多视图中的不同视图。有人知道该怎么做吗?
Basically what I want to do is "timeout" a view. Similar to a javascript redirect after a certain amount of time except instead of redirecting, switching to a different view in the multiview. Anyone know how to do this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
由于 MultiView 没有客户端 API,因此方法是手动创建一个 __doPostBack 调用,以多视图 ID 作为源:
第二个参数是事件名称/args;您可以通过以下方式在回发中手动检查这一点:
然后切换当前视图;可能已经有一个内置命令名称可以执行此操作,我不确定。
Since MultiView doesn't have a client-side API, the way to do this is to manually create a __doPostBack call with the multiview ID as the source:
The second parameter is the event name/args; you can manually check this on the postback via:
And then switch the current view; there may already be a built-in command name to do this, I am not sure of that.