Never done this before so not sure what is involved in it. I did search and found many answers but they were more complex than what I need. For example they needed to zoom in, generate, create accurate thumbnail, embed the actual PDF in the webpage, etc... But my question is much simpler: If my guy that I am showing his information on webpage has some PDF to show I just want to put a generic PDF icon on the page, people click on it and the actual PDF opens in a new tab in their browser.
What is involved in just doing that? It is not like a file path, the PDF is saved in SQL server as binary objects or whatever it does to save it in SQL Server..it is not a file disk path on server
Create a Controller action to for your link
view code
Your tags indicate asp.net-mvc.
Create a controller to handle requests for the PDF file
Pseudo:
On client
Update:
Referencing @ChrisPratt's comment; (which I forgot to include in my answer)
The
target
attribute on the anchor tag is what will tell the browser to open the link in a new tab.