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

Forcing the File Download Dialog

1 Answer 116 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Gabor Alsecz
Top achievements
Rank 1
Gabor Alsecz asked on 02 Jan 2010, 02:57 PM
Hello All! Happy New Year!

I have a problem. Maybe AJAX, maybe not.
I am using Telerik RadAjaxPanel on my whole page and for a button click I want to open save as file dialog but nothing happen when clicked (file generation and path ok)
The save as file dialog code is the following:

Response.ContentType = "application/pdf";
Response.AppendHeader("Content-Disposition", "attachment; filename=" + pdfGen.GeneratedFileName);
Response.TransmitFile(pdfGen.FullFilePath);
Response.End();


Have somebody got idea?

Thanks,
G.

1 Answer, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 05 Jan 2010, 10:40 AM
Hello Gabor,

Please examine the following links:
Exclude controls from ajaxifying
Download files with ajaxified control

Regards,
Daniel
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Ajax
Asked by
Gabor Alsecz
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Share this question
or