如何阻止 UpdatePanel 中的某些控件更新?

发布于 2024-07-15 08:10:39 字数 98 浏览 2 评论 0原文

我有一个 UpdatePanel ,其中包含许多对象。 如何防止其中一些在刷新面板时重新加载? 是否有一个标签可以实现这一点,从更新中“隔离”一些元素?

I have an UpdatePanel with many objects within. How can I prevent some of them from reloading when the panel is refreshed? Is there a tag to make this happen, to sort of "isolate" some elements from the update?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

心凉怎暖 2024-07-22 08:10:39

最好的选择是在布局中使用多个 UpdatePanel,以便您可以有效地对需要分组的内容进行分组。 然后,您需要确保将 UpdatePanels 设置为 Conditional,以便您可以控制当其他 UpdatePanels asyncpostback 时它们是否进行 asyncpostback。

编辑:这是一个教程 演示了其中一些功能

Your best bet would be to use multiple UpdatePanels in your layout so that you can effectively group what needs to be grouped. Then you need to make sure that the UpdatePanels are set to Conditional so that you can control whether they will asyncpostback when other UpdatePanels asyncpostback.

Edit: Here is a tutorial that demonstrates some of this functionality

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