Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. File (PDF *.Doc) Display with ASP.NET

File (PDF *.Doc) Display with ASP.NET

Scheduled Pinned Locked Moved ASP.NET
csharpasp-nethelpquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    ffowler
    wrote on last edited by
    #1

    Hello All, I have a question that I think I did perform due diligence on finding an answer before having to interupt your day. I am at a lost, so here goes. I have an internal application that users requested I extend it's features by allowing a user to upload a file that anyone can look at by selecting it from a list. I utilized the FileUpload Control with extreme ease and that this part is working great (uploading the files and saving them to the hard drive.) After this I have hit a wall. I want the user to be able to select a saved file and have it displayed in the aspx page with the correct external application (Word for docs and txt files, and anything for pdf files. I allow the upload of DOC and PDF files). I have not found a way to do this. If anyone can point me in the right direction, I will greatly appreciate it. Again, sorry to bug you guys but I am lost.:confused:

    C 1 Reply Last reply
    0
    • F ffowler

      Hello All, I have a question that I think I did perform due diligence on finding an answer before having to interupt your day. I am at a lost, so here goes. I have an internal application that users requested I extend it's features by allowing a user to upload a file that anyone can look at by selecting it from a list. I utilized the FileUpload Control with extreme ease and that this part is working great (uploading the files and saving them to the hard drive.) After this I have hit a wall. I want the user to be able to select a saved file and have it displayed in the aspx page with the correct external application (Word for docs and txt files, and anything for pdf files. I allow the upload of DOC and PDF files). I have not found a way to do this. If anyone can point me in the right direction, I will greatly appreciate it. Again, sorry to bug you guys but I am lost.:confused:

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      If you do a response.write and set the header type correctly, then they will be able to view those files, provided they have acrobat and word installed.

      Christian Graus Driven to the arms of OSX by Vista.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups