Disable copy & paste in asp.net textboxes

Below is the line of code to disable copy & paste event in textbox.

[code]<asp:TextBox onCopy="return false" onPaste="return false" ID="textboxname" runat="server" ></asp:TextBox>[/code]

Hope this helps 🙂
Enjoy!!!

One thought on “Disable copy & paste in asp.net textboxes

Leave a Reply

Your email address will not be published. Required fields are marked *