JSFiddle - React, Tailwind, and code Playground
by AspdotnetKishore
HTML
<head id="Head1" runat="server">
<title>JQuery:How to Disable Cut,Copy and Paste in ASP.NET</title>
<script type="text/javascript" src="http://ajax.microsoft.com/ajax/jquery/jquery-1.4.4.min.js">
</script>
<script type="text/javascript" language="javascript">
///First Way
$(document).ready(function () {
$('#txtDisable').live("cut copy paste", function (e) {
e.preventDefault();
});
});
///Second Way
$(document).ready(function () {
$('#txtSecond').bind("cut copy paste", function (e) {
e.preventDefault();
});
});
</script>
</head>
<body>
<form id="form1" runat="server">
<h3>JQuery:How to Disable Cut,Copy and Paste in ASP.NET</h3>
<span>Disable Cut,Copy and Paste using live() method</span><br />
<input id="txtDisable" /><br />
<span>Disable Cut,Copy and Paste using bind() method</span><br />
<input id="txtSecond" /><br />
<span>Disable Cut,Copy and Paste using oncopy,oncut and onpaste by giving return false</span><br />
<input id="txtThird" oncopy="return false;" oncut="return false;"
onpaste="return false;"></asp:TextBox>
</form>
</body>