Click here to Skip to main content
15,891,717 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
<small>text</small>


XML
<script type="text/javascript">

$(document).ready(function() {

$('#<%=txtTarget.ClientID%>').bind('cut copy paste',

function(e) { e.preventDefault();

alert("cut , copy , paste disable !!!!!");

});

});

</script>


this is script.how it include in a c# code and what change in this code make a pdf file can't copy paste?
Posted
Comments
Suvabrata Roy 25-Sep-14 6:38am    
what you want?
Please write in clear text.
Suvabrata Roy 25-Sep-14 6:41am    
Don't re-post your questions
Member 11026295 25-Sep-14 6:46am    
I have a pdf file in a folder.I want to disable copy paste in that file. how?
Richard MacCutchan 25-Sep-14 7:01am    
You can't. Copy and Paste is implemented within applications and there is no way to stop applications from using it.
Member 11026295 25-Sep-14 7:15am    
there is any way to disable right click

1 solution

You can't stop it. It's that simple.

The PDF is being displayed by a component that is not entirely under the control of the browser.

You have no way of turning it off in your javascript code.
 
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