RadAjaxManager howto download HTML file

2 posts, 0 answers
  1. Hans
    Hans avatar
    1 posts
    Member since:
    Sep 2011

    Posted 22 May 2012 Link to this post

    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 ?

  2. Daniel
    Daniel avatar
    4949 posts

    Posted 25 May 2012 Link to this post

    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.

    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.
Back to Top