none
Ctrl+ c, and crtl +V RRS feed

  • Question

  •  

    hi to all

     

    currently am working with asp.net web application.how can i avoid ctrl C and ctr+ v in text box and other controls

    anyone can plz guide me.....

     

     

    thanks in advance

    Wednesday, June 11, 2008 10:17 AM

Answers

  • Code Snippet

     

     <body leftmargin=0 topmargin=0 oncontextmenu='return false' ondragstart='return

    false'onselectstart ='return false' onselect='document.selection.empty()'

    oncopy='document.selection.empty()' onbeforecopy='return false'

    onmouseup='document.selection.empty()'>  

     

     

    Also, if you want to do more. You could prevent other from saving the web page as follows:

     

    Code Snippet

    <noscript>
      <iframe src=../../*></iframe>


    </noscript>

     

     

    Thursday, June 12, 2008 1:42 AM