Link to home
Start Free TrialLog in
Avatar of feesu
feesu

asked on

ASP.NET - I failed in disabling Copy/Paste and Print on my webpage

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??
ASKER CERTIFIED SOLUTION
Avatar of Dirk Haest
Dirk Haest
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of feesu
feesu

ASKER

Dhaest,

That code doesn't work. I can still ctrl + A to select all and ctrl + C then paste them in Word.

robasta,

I used that HTMLProtect and protected a page, but I was still able to copy its content. Check below, I copied it along with the software tag!:


This webpage is protected by HTMLProtector

Greetings from Manchester Business School, and thank you for your interest in the Manchester MBA Programme…
 
We know that embarking an MBA is a big commitment in terms of time and money so choosing the right programme, one that suits your individual circumstances and aspirations, is vital. Below is some general information about our  Global MBA with different pathways.  
 
Why MBS?
Manchester Business School is consistently ranked among the top business schools in the world. We are proud to be one of the few Triple Accredited Business Schools - by AMBA, EQUIS and AACSB International.The Manchester Global MBA is highly flexible and portable, meets the needs of busy executives and fits around your personal and professional commitments. Our proven blend of robust academic theory and practical, hands-on experience means you can start putting your learning into practice from day one, providing immediate benefits for you and your employer.
 

SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Did you try my latest comment ?