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
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Rajagopalan R VPosted Sep 9, 2014, 2:50 AM
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