Solved

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

Posted on 2004-09-07
5
151 Views
Last Modified: 2010-04-23
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
0
Comment
Question by:pgilfeather
  • 2
5 Comments
 
LVL 18

Accepted Solution

by:
armoghan earned 250 total points
ID: 11996625
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
 
LVL 18

Expert Comment

by:armoghan
ID: 11996690
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
 
LVL 18

Assisted Solution

by:DotNetLover_Baan
DotNetLover_Baan earned 250 total points
ID: 11997077
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

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Article by: jpaulino
XML Literals are a great way to handle XML files and the community doesn’t use it as much as it should.  An XML Literal is like a String (http://msdn.microsoft.com/en-us/library/system.string.aspx) Literal, only instead of starting and ending with w…
Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now