在 UserControl 内的 Update Panel 在另一个 UpdatePanel 内的 Repeater 内
是的,这听起来很疯狂……可能是的。
最终的更新面板似乎没有触发任何内容,它只是刷新更新面板,并且不会回调托管它的用户控件。
有任何想法吗?
编辑:我将其发回,但是最终用户控件内的控件已丢失数据...我想这是因为主转发器在每次回发时重新绑定...现在不知道该将其带到哪里。
Yes, it sounds crazy....It might be.
The final updatepanel does not appear to trigger anything, it just refreshes the update panels and does not call back to the usercontrol hosting it.
Any ideas?
EDIT: I got it posting back, however the controls inside the final usercontrol have lost their data...I'm thinking its because the main repeater is rebinding on each postback...Not sure where to take this one now.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我建议您首先删除 UpdatePanels,并确保您的控制狂欢与回发正常工作。 完成此操作后,请尝试从下往上添加 UpdatePanel。
I would suggest you start by removing the UpdatePanels at first, and make sure your control orgy is working correctly with postbacks. Once you have that working, try adding the UpdatePanels back in from the bottom up.
如果您将两个 UpdatePanel 上的 UpdateMode 属性设置为 Conditional(默认为始终),则当只有用户控件 updatepanel 应该刷新时,它应该停止外部 UpdatePanel 触发。
If you set the UpdateMode property to Conditional (default is Always) on both UpdatePanels it should stop the outer UpdatePanel triggering when only the usercontrols updatepanel should have refreshed.