Thursday, June 14, 2012

Disable Paste functionality of the textbox

We can disable paste functionality of the textbox by using the following code

 onpaste="javascript:return false;"

eg:    <asp:TextBox ID="txtName" runat="server" CssClass="inputText" onpaste="javascript:return false;"></asp:TextBox>    

No comments:

Post a Comment