• 0

HELP: make asp.net 2.0 open a pdf


Question

This' in asp.net 2.0 c#

Is there a way to code a hyperlink to a pdf that will open it for viewing but the document will then be auto. deleted if it's closed?

Or how to specify the document to be downloaded to a specific path only (ex: the browser' cache) as viewing (not like in OS X if we click on a pdf link it download the file auto. to desktop then view it, and still leave it there on desktop when things' closed, which is annoying if the users just browse through the document but not actually want to save it, unless they "save as.." by themselves).

I believe the user can do this by changing the settings in the browser themselves but is there a way to code this in the site in default (ex: for security purposes etc.)

Thanks!

Link to comment
https://www.neowin.net/forum/topic/554301-help-make-aspnet-20-open-a-pdf/
Share on other sites

4 answers to this question

Recommended Posts

  • 0

Once the file makes to the users computer, all bets are off of what you can do with the file. Not sure if there are any security settings within the PDF file (set when the PDF if created) that can prevent the storage on the users computer.

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • I mean, it's fairly self explanatory isn't it? It's part of the reason Apple don't include all features on all supported devices with new iOS releases (another reason is probably a subtle nudge to upgrade sooner), but there's a balance between the remaining features that are added and the impact on performance/battery life on those older devices. There certainly have been times when devices have really received a practical (performance/battery life) quality of life improvement via a software update, but like absolutely every damn app update log out there currently, "Performance and Security improvements" basically mean nothing of real world impacts these days. Just what I've seen of this new interface, the rendering of that glass effect would surely be more complex and intensive than the previous transparency effects, there's no way they couldn't be more efficient. It's probably quite a small impact, otherwise they wouldn't be releasing it, but it all has an impact. Even Microsoft backtracked from Acrylic to Mica material, which is prerendered blur of the wallpaper. All the Acrylic material is rendered live, so has a greater impact, hence why windows use the newer, lower impact Mica material as their base material.
    • This is the reason Microsoft stepped away from Aero for a more subtler transparency. Apple I believe had the perfect balance of transparency and readability, but not with this redesign in its current form. As for people who believe Windows has an 8-bit interface, well, at least you can read stuff.
    • who ever thought this looked good needs to rethink their design credentials.....
    • There's a few here upset Kamala Harris never got the Presidency! lol....
    • Yeah, he identified a whole lot of wasteful spending of US taxpayer money. What's wrong with that? Nothing, unless you had your fingers in the pie of course.
  • Recent Achievements

    • One Month Later
      greege earned a badge
      One Month Later
    • Week One Done
      greege earned a badge
      Week One Done
    • Week One Done
      LagFighterZ earned a badge
      Week One Done
    • First Post
      ThatGuyOnline earned a badge
      First Post
    • One Month Later
      5i3zi1 earned a badge
      One Month Later
  • Popular Contributors

    1. 1
      +primortal
      547
    2. 2
      ATLien_0
      230
    3. 3
      +FloatingFatMan
      166
    4. 4
      Michael Scrip
      119
    5. 5
      +Edouard
      91
  • Tell a friend

    Love Neowin? Tell a friend!