How can I prevent a user from using browser back buttons or using a right click menu?

I have set up an online exam and my biggest obstacle is the browser and right click menus. What if the user tries to go back and re-submit his/her exam form? How can I control this?

You help would be greatly appreciated.

I use VB.NET

Kind Regards

PG
pgilfeatherAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
armoghanConnect With a Mentor Commented:
If you are using IE control in your VB application
this might help
http://support.microsoft.com/default.aspx?scid=kb;EN-US;316516
0
 
armoghanCommented:
If it is Web based using ASP.NET you can remove the top navigation bar using JavaScript and disable menu using Java Script as well.
0
 
DotNetLover_BaanConnect With a Mentor Commented:
Hi there,
another approach would be using sessions.
-> Use Session variable (Say, Status),
-> Assign a value to it on starting the exam
                 Session("Status") = "Started"
-> Check it on every page
             If Session("Status")="Started") Then
                     'Continue with the test
             Else
                     'Redirects to some other page
                     'There you can display message "oops!!! Already submitted"
             End If
-> Change its value on submit.
             Session("Status") = "Finished"

-Baan
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.