PostBackTrigger 控件 ID

发布于 2024-09-28 19:11:55 字数 127 浏览 0 评论 0原文

我有一个按钮(“导出”)可将数据从网格导出到 Excel。

但它位于更新面板内。所以我正在注册回发触发器。

我应该为 PostBackTrigger.ControlId 分配什么???

谢谢!

I have an button ("export") to export data from grid to excel.

But it's inside an update panel. So I'm registering postback trigger.

What should I assign to PostBackTrigger.ControlId ???

Thanks!

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

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

发布评论

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

评论(1

你げ笑在眉眼 2024-10-05 19:11:55

如果该按钮位于更新面板中,则您无需为其设置触发器。

如果您在更新面板之外有任何控件,则需要设置触发器(如果您希望刷新更新面板)。 ControlId 应设置为控件的 ID。

UpdatePanel 控件概述

If the button is in the update panel you don't net to set a trigger for it.

If you've got any contorl outside the updatepanel you'll need to set a trigger if you'ld like the updatepanel to refresh. the ControlId should be set with the ID of the control.

UpdatePanel Control Overview

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