导出到Excel不在updatepanel内部工作
问题描述:
我有一个按钮,可以将gridview导出到excel,这在更新面板外工作正常..
但是我想要更新面板内的按钮..
我有写了一个解决问题的触发器,但是当我点击按钮时没有任何反应,下面是代码:
I have a button that exports a gridview to excel, which is working fine outside the updatepanel..
But I want the button inside updatepanel..
I have written a trigger to solve the issue, but nothing happens when I click the button, below is the code:
<div style="text-align:right;">
<asp:Button ID="exclexp" runat="server" Text="Export As Excel" OnClick="exclexp_Click" />
<triger>
<asp:AsyncPostBackTrigger ControlID="exclexp" EventName="Click" />
</triger>
</div>
请帮助我是asp.net的初学者
当我鼠标移动到触发器时它显示如下:
please help I am a begginer in asp.net
when I mouseover to the trigger its showing like:
AsyncPostBackTrigger
不是已知元素
答
下载或上传需要添加的文件一个完整的回发。请添加postbacktrigger而不是asyncpostback触发器,并检查是否有效。希望这会有所帮助。
to download or upload a file you need to add a full postback. please add postbacktrigger instead of asyncpostback trigger and check if that is worked or not. hope this will help.