Disable Drag and Drop in Textbox
-
Hi, I have a login page in my application. (I m using C#) In that I have disabled Cut, Copy and Paste using Javascript. Its working fine. But, still user can drag and drop any text in these textboxes. How can I restrict the use from this? I dont want to derive any class from Textbox control.. Please advice.
Regards, -SIFAR.
-
Hi, I have a login page in my application. (I m using C#) In that I have disabled Cut, Copy and Paste using Javascript. Its working fine. But, still user can drag and drop any text in these textboxes. How can I restrict the use from this? I dont want to derive any class from Textbox control.. Please advice.
Regards, -SIFAR.
-
Hi, I found the solution in javascript only. It was same as restricting user from Cut, Copy and Paste. Solution is : ondrop="return false" :)
Regards, -SIFAR.
Thanks. I was also looking for this solution. I rated you 5 for this question.
Anurag Gandhi. http://www.gandhisoft.com Life is a computer program and every one is the programmer of his own life.
-
Hi, I have a login page in my application. (I m using C#) In that I have disabled Cut, Copy and Paste using Javascript. Its working fine. But, still user can drag and drop any text in these textboxes. How can I restrict the use from this? I dont want to derive any class from Textbox control.. Please advice.
Regards, -SIFAR.
-
Hi, I found the solution in javascript only. It was same as restricting user from Cut, Copy and Paste. Solution is : ondrop="return false" :)
Regards, -SIFAR.
Good solution.