This is a migrated thread and some comments may be shown as answers.

Error while using RadAjaxPanel ....

2 Answers 60 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Manoj
Top achievements
Rank 1
Manoj asked on 13 Mar 2009, 10:28 AM
Hi Team,
    I have to implement the Export To Excel functionality . So when user will click on the buton a file donw window popup will appear , user can open the file , save the file and cancel it . But it is giving some warning message . I have  used RadAjaxPanel to reduce the page post back .
I checked it when I am not using the RadAjaxPanel it is working fine ( wndow popup is coming ) . But when I am using the RadAjaxPanel it is giving an error .
Error Text is :
sys.webforms.pagerequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enables.

Code snipet which I am using is : This is under a button click .

Response.ContentType =

"application/vnd.ms-excel";

 

Response.AppendHeader(

"Content-Disposition", "attachment; filename=Test12.xls");

 

Response.TransmitFile(Server.MapPath(

"/Excel/Test12.xls"));

 

Response.End();

Can you please look into it and suggest what steps I have to take to avoid this .

Regards
Manoj

2 Answers, 1 is accepted

Sort by
0
Manoj
Top achievements
Rank 1
answered on 14 Mar 2009, 08:59 AM
Hi Team,
    Can you please give me an updates on this . It's urgent for me .

Regards
Manoj
0
Vlad
Telerik team
answered on 16 Mar 2009, 07:41 AM
Hi Manoj,

Export trough ajax is not possible - you need to perform this using regular post-back.

Sincerely yours,
Vlad
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
TreeView
Asked by
Manoj
Top achievements
Rank 1
Answers by
Manoj
Top achievements
Rank 1
Vlad
Telerik team
Share this question
or