ASP.NET - I failed in disabling Copy/Paste and Print on my webpage
Posted on 2011-02-21
I have a problem with disabling copy/paste and print on my web page.
I have added the following to the body section:
ondragstart='return false' onselectstart='return false'
But I still can press ctrl + A then ctrl + C and paste the content into Word!
And when I added oncontextmenu='return false' to disable right click, it worked only for the body section, but if the user goes to the bottom of the page, the right click works, and then he's able to print!
What do I do??