在 UserControl 内的 Update Panel 在另一个 UpdatePanel 内的 Repeater 内

发布于 2024-07-04 14:55:50 字数 172 浏览 4 评论 0原文

是的,这听起来很疯狂……可能是的。

最终的更新面板似乎没有触发任何内容,它只是刷新更新面板,并且不会回调托管它的用户控件。

有任何想法吗?

编辑:我将其发回,但是最终用户控件内的控件已丢失数据...我想这是因为主转发器在每次回发时重新绑定...现在不知道该将其带到哪里。

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

攒一口袋星星 2024-07-11 14:55:50

我建议您首先删除 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.

锦爱 2024-07-11 14:55:50

如果您将两个 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文