what to use to give the client a file download?

4 posts, 0 answers
  1. Mario
    Mario avatar
    75 posts
    Member since:
    Jun 2009

    Posted 29 Jun 2009 Link to this post

    hi i have several files on the webserver.

    i tried for example to open the file in a new RadWindow. But i dont know what to do/use to make the client able to download a file..

    any ideas / best practices?

    thanks mario
  2. Paul
    Admin
    Paul avatar
    4281 posts

    Posted 30 Jun 2009 Link to this post

    Hi Mario,

    File download is usually handled by the browser and there is not much a UI control can add. You can simply provide a link for the needed file(s).

    Greetings,
    Paul
    the Telerik team

    Instantly find answers to your questions on the newTelerik Support Portal.
    Check out the tipsfor optimizing your support resource searches.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Mario
    Mario avatar
    75 posts
    Member since:
    Jun 2009

    Posted 01 Jul 2009 Link to this post

    hm, yes.

    So why does my new radwindow with the filepath doenst open a filedownload dialog at the client browser?

    thx mario
  5. Stuart Hemming
    Stuart Hemming avatar
    1622 posts
    Member since:
    Jul 2004

    Posted 01 Jul 2009 Link to this post

    Mario,

    I went through this look a couple of years ago. The simple truth is that what happens when a file is downloaded is dependent not just on the browser but the browser's user's settings.

    Once I'd discovered this I simply settled for serving the file and letting the user deal with that.

    If you want a sample of the code I used to do this, ask here and I'll post it.

    --
    Stuart
Back to Top