it is easy to implement whenever user right click on a webpage this script get execcuted.
and protect our code.
to do add this script in asp.net page
<script type="text/javascript">
function disableRightClick() {
if (event.button == 2) {
alert('For Security Reason Right Click is Disabled')
}
}
document.onmousedown = disableRightClick
</script>
in body tag you will add this for call this script
<body öncontextmenu="return false">
hope this is useful for you.
happy coding
from vikranth reddy