how to location.href to a full filename (pdf file)
Posted on 2006-06-13
When I click on a hyperlink for an asp.net file link utility I'm trying to write, I can't figure out how to get the file to open.
Is there something special I need to do to open files that are hyperlinked?
If the file is in the wwwroot during my test, I can open as long as it is not fully extended:
But when I try to fully extend it, it doesn't work.
That doesn't work.
What am I doing wrong? Why can I shortcut to the file, but when I want to use the full filename, it doesn't work? Ultimately I want to point to files outside the wwwroot, but I'm starting here as a test.