I am using Asp text box with Ajax html editor extender. My issue is i don't want to allow to paste the content which is copied from some other source into my text box. And also in my text box when i am clicking the enter(for next line) it is stored as Div tag in my data base how to resolve these two issues. Please let me know the solutions.
Asked
Active
Viewed 1,003 times
1 Answers
0
Try this See Reference
$(document).ready(function () {
$('input.disablecopypaste').bind('copy paste', function (e) {
e.preventDefault();
});
});
-
See Update might helpful to you – Amol Jun 29 '13 at 12:24
-
Thank you Amol, it is working now. can you tell me the solution for my second issue? – Ganeshh1 Jun 29 '13 at 12:38
-
Frankly I didn't understand "it is stored as Div tag in my data base"? – Amol Jun 29 '13 at 12:55
-
suppose i entered some data like "Hello world" and clicked enter button from key board for next line. then this is stored as "Hello world" in my data base. how to resolve this.?– Ganeshh1 Jun 29 '13 at 13:16
-
You mean likeHello world? – Amol Jun 29 '13 at 13:19
-
For that just add end with string before store to DB – Amol Jul 01 '13 at 13:46