Posted on: 6/5/2014 10:27:39 PM | Views : 380

Hi ALL!  I am pretty new to MVC / ASP.NET
I am building an MVC4 website with a few pages and a content folder in the root.  On those pages there will be specific links to static PDF files in the content folder.  Initially I thought I could use a simple relative <a href="~/content/somefile.pdf">click here</a> HTML link to the file but when I open the application in a browser I get an error saying something about how the browser does not know how to process this URL.
I've searched around and most of the solutions I have found use all kinds of file handlers and controllers  and/or jquery to pass file arguments but the solutions also involve creating dynamic views of a large pool of files from a /content folder. I don't need something that complex.  At most I will have 5 or 6 files and they will never change.
What is the simplest and/or best way to just drop a link to a file on a page when i don't nee ...

Go to the complete details ...