PDA

View Full Version : Hyperlink to .pdf not working


jd4moto
12-21-2010, 06:38 PM
I have a .pdf hyperlinked as follows: <a href="../subfolder/docname.pdf" target="_blank">docname</a>
When I run my application in debug mode (MS visual studio express 2010) I can open this doc with no issues, but when I publish my app to DiscountASP, I try to open the file and I get the error:

HTTP Error 404.0 - Not Found
The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.

Does anyone have any suggestions? Thanks!!!

jd4moto
12-21-2010, 09:52 PM
Ok, I'm an idiot. Got it figured out, I guess you need to set the type to "content" in the pdf properties...

mjp
12-22-2010, 06:02 PM
Thanks for posting that follow-up, it will help someone else down the road.