Hi Friends.....,
How to Disable Mouse Event (Mouse Right Click Operation) On Particular Button on ASP.NET C#
For Example : "Log out" To not Allow Right Click Operation
With Regards......,
R.V.Rajagopalan
How to Disable mouse Right Click Operation
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.


Rajagopalan R VRank #6,801 · 256 reputationPosted Sep 8, 2014, 10:50 PM EDT
Solution for Above Query
I itself got the Solution, Below Link and Code is Working Fine for Me........,
Example:
function disableRightClick() {
alert("Sorry, Right click is not allowed in this Operation !!");
return false;
}
oncontextmenu="return disableRightClick();"
oncontextmenu need to declare where in which button u need this operation to be performed.
And
http://www.c-sharpcorner.com/Blogs/14024/
http://www.c-sharpcorner.com/Blogs/14620/disable-right-click-on-web-page.aspx
With Regards.....,
R.V.Rajagopalan