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

RadAjaxManager howto download HTML file

1 Answer 50 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Hans
Top achievements
Rank 1
Hans asked on 22 May 2012, 03:27 PM
Hi
We are able to download files with RadAjaxManager.ResponseScripts.Add("window.location.href=.....

However when we want to download an HTML file, then the browser window opens and displays the HTML file instead of presenting a download dialog which let's us choose the download folder.

Do you have any suggestions how to download an HTML file ?

1 Answer, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 25 May 2012, 12:08 PM
Hi Hans,

I don't think this is possible considering that you are actually redirecting the browser to a html/htm file. The only option that crosses my mind is to change the file extension to something that is not recognizable by the browser.

Regards,
Daniel
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Ajax
Asked by
Hans
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Share this question
or