We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Download to excel using AJAX

Thread ID:





60507 May 7,2007 01:49 PM UTC Dec 26,2007 04:20 AM UTC ASP.NET Web Forms (Classic) 3
Tags: XlsIO
Asked On May 7, 2007 01:49 PM UTC

I am having an Web project, in which AJAX has been implemented at the page level. I am having an user control with a link to download an excel file using Syncfusion, which is placed inside that page. Now if i try to download the excel file it shows an error as

'Sys.WebForms.PageRequestManagerParserErrorException: Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or Server Trace is enabled.'

When i place the same user control in a page which does not have AJAX implemented, it works fine.

What should i do for that?

Melba Winshia [Syncfusion]
Replied On May 8, 2007 09:54 AM UTC

Hi Eswari,

Thanks your interest in Essential XlsIO.

I created a web project in which AJAX has been implemented at the page level. But I was not able to reproduce any issues. Here is the test sample that I used to test this issue:


Here is the video clip for your reference:


Could you please take a look at the sample above and kindly let me know if you still find any problem, if not could you please modify this sample so that I can reproduce the issue? This would help me in investigating this issue further.


Olivier Sallier
Replied On November 30, 2007 12:34 PM UTC

Hi there,

I had the same issue but managed to fix it registering my button to send full postback. The problem lies in the fact that asynchronous postbacks are sent which means that the page on the client does not expect to receive an Excel document. Here is what you have to do to register your buttons:

protected override void OnPreRender(EventArgs e)
ScriptManager scriptManager = ScriptManager.GetCurrent(this.Page);
//ButtonExcelExport is the button firing the Excel download

Here is an interesting acticle about the PageRequestManagerParserErrorException :


I found the answer to my problem here:


Rajarajeswari S [Syncfusion]
Replied On December 26, 2007 04:20 AM UTC


Thanks for using Syncfusion products.

We are glad to know that you have got the solution.

Thanks a lot for giving the links.



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon