Click here to Skip to main content
15,913,027 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hello sir
i want some help regarding that
1) user can not save website when they click save button in file .
2) Second i want to disable save button when i open pdf file in web mode.
Posted
Comments
Sergey Alexandrovich Kryukov 25-Mar-12 4:26am    
Why? why?!
--SA

You cannot prevent saving of any resources which are already loaded. And you cannot prevent preserving anything which already was cached.

Just thing about it: all the data is already on the client site. What can possibly prevent the user from using it? It's already there. The server code, whatever it is, does not have any control over this data.

No, you cannot prevent it, no matter what you do.

—SA
 
Share this answer
 
1) You can't prevent it. It is purely browser dependant. There need not even be a browser at the other end - it could be an app accessing you via an httpRequest.
2) See here: Disable PDF Save and Print Button[^] where there is already a discussion on the subject.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900