PDA

Click to See Complete Forum and Search --> : How to display a file in the browser


Smithrr
Jan 2nd, 2001, 01:42 PM
I am using ASP in a attempt to display a PDF file in the browser. My current code works.
window.navigate "C:\Test.pdf"

However I want to run this is the server script.

response.redirect "C:\Test.pdf"

This seems to fail.

Anyone have any ideas on how to display this file?

parksie
Jan 2nd, 2001, 01:45 PM
Make sure that the PDF file is in a server directory - that is, one that the browser can access, then use:

Response.Redirect "http://www.server.com/test.pdf"