Sunday, August 12, 2012

jQuery disable right click on webpage using asp.net

<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>jQuery disable right click on webpage using asp.net</title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js">
</script>
<script type="text/javascript" language="javascript">
$(function() {
$('img').bind("contextmenu", function() {
return false
});
});
</script>
</head>
<body>
<form id="form1" runat="server">
<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhivgoHiS0JXMetNXZQLBxRJOoLFALZ5mRqGEmyIp-I26Kba-69rsk2Q5V7nryoP6SvR3aPw1qWTosL7s1mxVS6qtiKQM_atyFECr7StYudETU0khbn0uF7JtmjAwl4XbkqtpEU0JZCbeQ/" alt="" />
<div>
Asp.net,C#.net,SQL Server,Web Services,WCF,
WPF,MVC,Crystal Reports,AJAX,XML,JavaScript,JQuery,Gridview articles,
samples and tutorials,code examples of asp.net 2.0,3.0,3.5,4.0 and Articles,
examples of .net technologies
</div>
</form>
</body>
</html>