Aspdotnet-Suresh

aspdotnet-suresh offers C#.net articles and tutorials,csharp dot net,asp.net articles and tutorials,VB.NET Articles,Gridview articles,code examples of asp.net 2.0 /3.5,AJAX,SQL Server Articles,examples of .net technologies

JQuery disable right click on web page using asp.net

Aug 11, 2012
Introduction

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.

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.

subscribe by rss Subscribe by RSS subscribe by email Subscribe by Email

6 comments :

Anonymous said...

hiii Suresh
plz give the wpf example also

Unknown said...

hai i am suresh
how can we send sms through asp.net using way2sms

Unknown said...

hai i am suresh
how can we send sms through asp.net using way2sms

Vara said...

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

SENTHIL said...

Hi varaprasadreddy..

i want code for this application. Please reply me for this

Sukhdev Sarvaiya said...

Hello Mr Suresh ,
Will you help for give the Codecs of Sending SMS using Way2Sms in ASP.Net..??

Give your Valuable Comments

Note: Only a member of this blog may post a comment.

© 2015 Aspdotnet-Suresh.com. All Rights Reserved.
The content is copyrighted to Suresh Dasari and may not be reproduced on other websites without permission from the owner.