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

what to use to give the client a file download?

3 Answers 77 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Mario
Top achievements
Rank 2
Mario asked on 29 Jun 2009, 04:21 PM
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

3 Answers, 1 is accepted

Sort by
0
Paul
Telerik team
answered on 30 Jun 2009, 02:08 PM
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.
0
Mario
Top achievements
Rank 2
answered on 01 Jul 2009, 09:18 AM
hm, yes.

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

thx mario
0
Stuart Hemming
Top achievements
Rank 2
answered on 01 Jul 2009, 09:40 AM
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
Tags
General Discussions
Asked by
Mario
Top achievements
Rank 2
Answers by
Paul
Telerik team
Mario
Top achievements
Rank 2
Stuart Hemming
Top achievements
Rank 2
Share this question
or