Click here to Skip to main content
15,888,033 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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:
XML
<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>




please help I am a begginer in asp.net

when I mouseover to the trigger its showing like:

AsyncPostBackTrigger
is not a known element
Posted
Updated 22-Apr-14 20:33pm
v2

1 solution

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.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900