Home  »  Forum  »  ASP.Net  »

How to disable copy, cut, paste in password text field?

 Posted By : Manoj SahooPosted Date : 26/10/2010 02:26:59 PM Category : ASP.Net Points : 1

Hello friends,

How can  i disable copy, cut and paste for my password textbox field. I want to restrict copy,paste, cut in the password field.

Please help me.

Thank You.

 

Regards,

Manoj

Responses
 Author : Manoranjan Sahoo Member Level : BronzeDate : 26/10/2010 02:28:51 PM Points : 2

Hi,

To do so use textbox's oncopy, onpaste and oncut event to handle this.

<asp:TextBox ID="TextBox1" TextMode="Password" oncopy="return false;" oncut="return false;" onpaste="return false;" runat="server"></asp:TextBox>

 


Thank You.



 Author : Manoj Sahoo Member Level : BronzeDate : 26/10/2010 02:31:16 PM Points : 2

Thank You for your quick reply.

It works fine for me..



 Author : Manoranjan Sahoo Member Level : BronzeDate : 19/04/2011 10:11:31 AM Points : 2

Welcome...

You can ask any type of query here...



Post Reply
Login to post Response.