RSS Forums RSS
Please support our ASP.NET advertiser: Lunarpages ASP Web Hosting
Views: 1880 | Replies: 15 | Solved
Reply
Join Date: Sep 2007
Posts: 73
Reputation: ebabes is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
ebabes's Avatar
ebabes ebabes is offline Offline
Junior Poster in Training

Disable Ctrl Keys

  #1  
Mar 3rd, 2008
I am currently working with onlize quiz. Is it possible to disable CTRL, ALT, other keys and status bar? My concern is to secure my page such that nobody can copy any data displayed in the page.

How can I do this in ASP.Net using C# as my script?
Last edited by ebabes : Mar 3rd, 2008 at 8:33 pm.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Jan 2007
Posts: 2,640
Reputation: MidiMagic is on a distinguished road 
Rep Power: 7
Solved Threads: 118
MidiMagic's Avatar
MidiMagic MidiMagic is offline Offline
Posting Maven

Re: Disable Ctrl Keys

  #2  
Mar 3rd, 2008
You do not have the right to take over the user's computer. It is illegal to do so.
Daylight-saving time uses more gasoline
Reply With Quote  
Join Date: Sep 2007
Posts: 73
Reputation: ebabes is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
ebabes's Avatar
ebabes ebabes is offline Offline
Junior Poster in Training

Re: Disable Ctrl Keys

  #3  
Mar 3rd, 2008
This will only happen when my students will conduct online quiz using my site. After they have logged in to my site and opening the page for online quiz that's the only page where those keys should be disabled to ensure that when they conduct the quiz they will not copy the questions and give it to my other students who were not able to take yet their online quiz.

I think this objective is good. If you dont want to share the code to anybody else they might use it for bad things, please email to me the answer at <snipped>. You may visit my site to prove that I am using it in my class <snipped>
Last edited by peter_budo : Mar 4th, 2008 at 6:36 pm. Reason: Keep It On The Site
Reply With Quote  
Join Date: Sep 2007
Posts: 1,058
Reputation: SheSaidImaPregy is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 62
SheSaidImaPregy SheSaidImaPregy is offline Offline
Veteran Poster

Re: Disable Ctrl Keys

  #4  
Mar 4th, 2008
Yes you can disable those keys, but it won't stop them from using the clipboard.

However, what you can do is set up a javascript function that gets called constantly. Then inside the function you set a cursor position, which will stop them from highlighting, and from "Selecting All".
Reply With Quote  
Join Date: Dec 2004
Location: London or Slovakia
Posts: 2,711
Reputation: peter_budo is just really nice peter_budo is just really nice peter_budo is just really nice peter_budo is just really nice 
Rep Power: 12
Solved Threads: 322
Moderator
Featured Poster
peter_budo's Avatar
peter_budo peter_budo is online now Online
Code tags enforcer

Re: Disable Ctrl Keys

  #5  
Mar 4th, 2008
Originally Posted by ebabes View Post
to ensure that when they conduct the quiz they will not copy the questions and give it to my other students who were not able to take yet their online quiz

How you gone prevent use of mobile phones with camera???
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)

LJC - London Java Community, JAVAWUG (Java Web User Group), Coding the Architecture
Reply With Quote  
Join Date: Sep 2007
Posts: 1,058
Reputation: SheSaidImaPregy is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 62
SheSaidImaPregy SheSaidImaPregy is offline Offline
Veteran Poster

Re: Disable Ctrl Keys

  #6  
Mar 4th, 2008
he can make the opacity of the entire screen down to 30% so the camera can't pick it up!!
Reply With Quote  
Join Date: Sep 2007
Posts: 73
Reputation: ebabes is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
ebabes's Avatar
ebabes ebabes is offline Offline
Junior Poster in Training

Re: Disable Ctrl Keys

  #7  
Mar 4th, 2008
Thanks SheSaidImaPreggy at least you understand my objective in doing such application. Can I have a sample code to make use of it as a good start? Thanks in advance...
Reply With Quote  
Join Date: Dec 2004
Location: London or Slovakia
Posts: 2,711
Reputation: peter_budo is just really nice peter_budo is just really nice peter_budo is just really nice peter_budo is just really nice 
Rep Power: 12
Solved Threads: 322
Moderator
Featured Poster
peter_budo's Avatar
peter_budo peter_budo is online now Online
Code tags enforcer

Re: Disable Ctrl Keys

  #8  
Mar 5th, 2008
Originally Posted by SheSaidImaPregy View Post
he can make the opacity of the entire screen down to 30% so the camera can't pick it up!!


That will go completely against HCI (Human-Computer Interaction) as you make site difficult to read and just get students something silly to complain about...
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)

LJC - London Java Community, JAVAWUG (Java Web User Group), Coding the Architecture
Reply With Quote  
Join Date: Mar 2008
Posts: 39
Reputation: srikanthkadem is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 7
srikanthkadem srikanthkadem is offline Offline
Light Poster

Re: Disable Ctrl Keys

  #9  
Mar 5th, 2008
 onpaste="return false;" oncopy="return false;"
use these events where you want to diable the copy.you can use it for form also if you want your page secured.try this it will work
tahnk you!
Reply With Quote  
Join Date: Sep 2007
Posts: 1,058
Reputation: SheSaidImaPregy is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 62
SheSaidImaPregy SheSaidImaPregy is offline Offline
Veteran Poster

Re: Disable Ctrl Keys

  #10  
Mar 5th, 2008
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 12:17 pm.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC