title: Stream PDF to browser and utilise Adobe PDF parameters such as #search, #zoom, #page
body: <p>This one is killing me! In ASP Classic I'm trying to stream users a pdf file, so far i've got the following code:</p>
  
  <pre><code>Response.Buffer = False
  'This is download
  Response.ContentType = ContentTypeFromFile(DownloadFileName)
  'Set file name
  Response.AddHeader "Content-Disposition", "inline; filename=myfile.pdf#search=fox"
  Response.binarywrite "c:/myfile.pdf"
  </code></pre>
  
  <p>However it's not working and the ? and # are changed to _ when I run it which causes the file download to break.</p>
  
  <p>I found the same question asked on here but it was 3 years ago and I've tried doing what the accepted answer suggested without any success.</p>
  
  <p>Can anyone help me?</p>
  
  <p>Link to the old question: <a href="https://stackoverflow.com/search?q=open+pdf+with+search">https://stackoverflow.com/search?q=open+pdf+with+search</a></p>