How to Disable Copy Paste and Cut in a ASP.NET Webpage TextBox?

 Posted by vishalneeraj-24503 on 7/2/2014 | Category: ASP.NET Interview questions | Views: 359 | Points: 40
Answer:

Write oncopy,onpaste and oncut event on Textbox definition like below:-

<asp:TextBox ID = "txt_employee_code" runat = "server" oncopy = "return false" onpaste = "return false" oncut = "return false">

</asp:TextBox>


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response