, , , , . , .
EnablePartialRendering = "false" ScriptManager
, , . , Page_Load(). btnexport - .
ScriptManager.GetCurrent(Page).RegisterPostBackControl(btnexport);
At first I tried it outside the postback, but my requirements were to export even after every drop-down that was on the update panel, so the button did not work for this. then when i put it in the postback ... voila !! It worked like a charm. This way, you can put it outside or inside the postback according to your requirements.
OR
Another solution - you can do this-
You may have forgotten to add a trigger inside asp: updatepanel, like me. Add this inside updatepanel and voila!
<Triggers>
<asp:PostBackTrigger ControlID="btnexport" />
</Triggers>
source
share