Solved

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

Posted on 2004-09-07
5
153 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

820 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