In Asp.net for the textboxes, if you want to disable some options like Copy,Paste and Cut, you can do this by writing simple code in the aspx page as below.
<table><tr><td><asp:TextBox ID="TxtNameEmp" runat ="server" oncut="return false" ></asp:TextBox></td>
<td><asp:TextBox ID="TxtId" runat ="server" oncopy="return false"></asp:TextBox></td>
<td><asp:TextBox ID="TxtAddress" runat ="server" onpaste="return false"></asp:TextBox></td>
</tr>
</table>
No comments :
Post a Comment