PostBackTrigger control id

2019-09-19 00:12发布

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!

1条回答
淡お忘
2楼-- · 2019-09-19 00:58

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

查看更多
登录 后发表回答