Introduction:
Here I will explain how to disable right click on webpage using JQuery in asp.net.
Here I will explain how to disable right click on webpage using JQuery in asp.net.
Description:
In previous article I explained how to disable right click on webpage using JavaScript. Now I will explain how to disable right click on webpage using JQuery in asp.net.
In previous article I explained how to disable right click on webpage using JavaScript. Now I will explain how to disable right click on webpage using JQuery in asp.net.
To
implement this one we need to write code as shown below in your aspx page
<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()
{
$(this).bind("contextmenu", function() {
return false
});
});
</script>
</head>
<body>
<form id="form1"
runat="server">
<div>
Aspdotnet-Suresh offers 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>
|
If
you observe above code in header section I added script file link by using that
file we have a chance to interact with JQuery and in the script we have bind event
with contextmenu which is used to
disable right click on webpage based using JQuery in asp.net.
If you enjoyed this post, please support the blog below. It's FREE! Get the latest Asp.net, C#.net, VB.NET, jQuery, Plugins & Code Snippets for FREE by subscribing to our Facebook, Twitter, RSS feed, or by email. |
|||
|
|||
6 comments :
hiii Suresh
plz give the wpf example also
hai i am suresh
how can we send sms through asp.net using way2sms
hai i am suresh
how can we send sms through asp.net using way2sms
Hi Suresh Sureshkumar These links may help you
http://www.reddyinfosoft.blogspot.in/2012/04/send-sms-using-way2sms-160by2-desktop.html
and
http://www.reddyinfosoft.blogspot.in/2012/04/sen-bulk-sms-via-c-using-way2sms-160by2.html
Hi varaprasadreddy..
i want code for this application. Please reply me for this
Hello Mr Suresh ,
Will you help for give the Codecs of Sending SMS using Way2Sms in ASP.Net..??
Note: Only a member of this blog may post a comment.