导出到Excel不在updatepanel内部工作 [英] Export to excel not working inside updatepanel

查看:63
本文介绍了导出到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.


这篇关于导出到Excel不在updatepanel内部工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆