how to deny copying the value from textbox1 to textbox2 in c#asp.net [Resolved]

Posted by Raj_chennai under ASP.NET on 1/27/2012 | Points: 10 | Views : 1042 | Status : [Member] | Replies : 3
if i try to copy the value from one textbox to another textbox by that time i need to deny copying the values in asp.net

raj


Responses

Posted by: Blessyjees on: 1/30/2012 [Member] Bronze | Points: 50

Up
0
Down

Resolved
Hi,

Try like this

<asp:TextBox ID="txt" runat="server" oncopy="return false"></asp:TextBox>


also use oncut="return false" if you need to prevent cut option

Blessy Baby
Digitalmesh Softech pvt Ltd
https://blessybaby.wordpress.com/

Raj_chennai, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sksamantaray on: 1/30/2012 [Member] Silver | Points: 25

Up
0
Down
using javascript

Thanks,
Sanjay

Raj_chennai, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Raj_chennai on: 1/30/2012 [Member] Starter | Points: 25

Up
0
Down
thanks

raj

Raj_chennai, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response