Using GetFile to retrieve & Redirect Files

Rob N.K asked on August 27, 2014 05:56

How would i use GetFile to retrieve uploaded files from the database but instead of downloading to the system, it should redirect the file to a Browser?

Correct Answer

Brenden Kehren answered on August 27, 2014 14:39

So what you're saying is you have a Word (doc, docx) file and when someone clicks the link to "open" it, it should open in a browser correct?

If I'm not mistaken, that's dependent on the browser and the plugins you have installed with the browser.

2 votesVote for this answer Unmark Correct answer

Recent Answers

Charles Matvchuk answered on August 27, 2014 19:46

Brenden is correct it is browser and machine dependent.

You can also get third party controls that will allow you to edit .doc, docx, xls, etc. These I use in my .aspx pages. In Kentico I create a new webpart .ascx with the controls and then register it in Kentico and use it wherever I need to.

The ones that I currently use, which work flawless with Kentico are Devexpress, (Word, Excel, rtf, csv and pdf) ComponentOne (Spread for, for xls, xlsx.) SpreadSheetGear (full excel and editable in app reporting.)

2 votesVote for this answer Mark as a Correct answer

Rob N.K answered on September 18, 2014 11:27

Thanks for your answers. My biggest concern is how the url to redirect my custom control.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.