I am trying to open a MS word doc (.docx) file from my server. The file is saved from a previous form and the path of that file is saved in the database (SQL Server 2008 R2).
What I have currently set up is a search that returns a list of "filenames" back to the view. Right now it is a @Html.DisplayFor(r=>r.filename)
.
Is there a way to turn that DisplayFor
into a link that opens in some word processor?
I don't want to download the file. I want it to work similar to Sharepoint where you can open the file without having to download a copy.