Here is a simple code for this
<asp:TextBox ID="TextBox2" runat="server" oncopy="return false"
onpaste="return false"
oncut="return false">
Disable Cut ,copy,paste of textbox
This Blog show you how to disable cut ,copy ,paste of Textbox.
This Blog show you how to disable cut ,copy ,paste of Textbox.
Join the conversation! Your thoughts help the community grow.
Join to leave a comment
Members earn 10 SHARP for a comment, 10 SHARP for a reaction, and 250 SHARP for every blog they publish.
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegisterMembers onlyeBook · Learn .NETCSharp 13 and .NET 9 Scripting Guide (Run .cs Without Projects)Download nowWrite a blog post and earn +250 SHARP when it is approved.
Write a blog
Ankit NandekarPosted May 25, 2011, 8:25 AM EDT
thnx ravi yaa u right we can.
Ankit NandekarPosted May 25, 2011, 8:25 AM EDT
thnx ravi yaa u right we can.
Ravi K KashyapPosted May 25, 2011, 6:07 AM EDT
i would like to add: you can disable any events like this i.e. ondrop, onpaste, ondrag, onmouseclick etc...
Ravi K KashyapPosted May 25, 2011, 6:05 AM EDT
keep it up :)