PostBackTrigger控件ID [英] PostBackTrigger control id
本文介绍了PostBackTrigger控件ID的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个按钮(导出"),用于将数据从网格导出到Excel.
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.
我应该为PostBackTrigger.ControlId分配什么?
What should I assign to PostBackTrigger.ControlId ???
谢谢!
推荐答案
如果该按钮在更新面板中,则您无权为其设置触发器.
If the button is in the update panel you don't net to set a trigger for it.
如果您要在更新面板之外进行任何控制,则需要刷新触发器.ControlId应该设置为控件的ID.
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.
这篇关于PostBackTrigger控件ID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文