Results 1 to 2 of 2

Thread: How to display a file in the browser

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Sep 1999
    Location
    Rock Island
    Posts
    21
    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?

  2. #2
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Make sure that the PDF file is in a server directory - that is, one that the browser can access, then use:
    Code:
    Response.Redirect "http://www.server.com/test.pdf"
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width