更新不同地方的面板

发布于 2024-09-26 22:19:33 字数 243 浏览 0 评论 0 原文

我的更新面板必须更新此面板内容中的某些面板,例如我

<update panel>
        some staff
</update panel>
<div>
        No need to update staff
        Need to update staff
</div>

在更新面板中更新“某些人员”时如何更新“需要更新人员”?

My update panel must update some panel out of content of this panel, for example I've got

<update panel>
        some staff
</update panel>
<div>
        No need to update staff
        Need to update staff
</div>

How can I update "Need to update staff" when updating "some staff" in my update panel ?

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

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

发布评论

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

评论(2

孤凫 2024-10-03 22:19:33

您可以:

  • 将它们放在同一个 updatePanel 中
  • 将它们放在两个单独的 updatePanel 中,并带有 更新触发器

正如您所说,它们必须是单独的(为什么?)使用第二个选项。

You'd either:

  • Have them both in the same updatePanel
  • Have them in two seperate updatePanels with an update trigger

As you say they have to be seperate (why?) use the second option.

梦中的蝴蝶 2024-10-03 22:19:33

最简单的方法就是扩展您的更新面板。

否则将您的 div 放入部分页面并使用 jquerys load 方法加载。

The simples must be to expand your update panel.

Otherwise put your div in a partial page and load with jquerys load method.

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