Home > Ajax, Asp.net > Export To Excel Inside An Update Panel in Asp.net

Export To Excel Inside An Update Panel in Asp.net


When using export to excel inside update panel, it will popup an error like “pagerequestmanagerparsererrorexception” .

The actual problem is with Response.write, as it tries to update only certain part of the page asynchronously.

This can be solved in following ways:

1) Adding trigger :

<Triggers>
<asp:PostBackTrigger ControlID=”btn_ExpertToExcel” />
</Triggers>

2) Placing button outside the update panel



Advertisements
  1. Asif
    February 25, 2010 at 12:30 pm

    Hi Pankaj..

    This is really good post and i implement it in my application…

    Thanks,
    Asif Huddani

  2. July 6, 2012 at 7:31 pm

    Gracious Amigo, this worked wonderfully.

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: