Forcing the File Download Dialog

2 posts, 0 answers
  1. Gabor Alsecz
    Gabor Alsecz avatar
    1 posts
    Member since:
    Nov 2009

    Posted 02 Jan 2010 Link to this post

    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.
  2. Daniel
    Admin
    Daniel avatar
    4949 posts

    Posted 05 Jan 2010 Link to this post

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