-
Timer question
Hello there,
I am creating a webapplication(Online exam) using VB.Net. I'd like to set a time limit on the form(webform) so that the user would be able see how much time left on the exam. And at the end of the time limit, the form will shut down automatically.
For example: the time limit on the exam is 30 minutes. When the form loads, the time (lable) will show 30:00. And then 29:59, 29:58......so on until it reaches 00:00.
Does anybody know how to do this problem?
As I understand, VB.Net does not have a timer control like VB6. So I am thinking perhaps a little VBScript embeded to the webform. If this is the case, does anybody have any idea how to write that vbscript? It'd be very appreciated if anyone can help me on this problem.
Thanks.
-
-
huh?
IVB.NET definitly has a timer, which is just like the one in VB6. Its just under "Components" (in the toolbox) instead of "Windows Forms"
-
there are actually 3 timers: windows forms, system and thread. the system probably would be best in your case since it is more acurate than the forms and your app doesn't really need the precision / resources used by the threaded.
-
Hi.
True, there are plenty of timers in VB, but Hellswraith right.
You have to do it in Java or VBS as a clientside script, unless you want your page to reload every second. Which might be a bit disturbing for the poor students ;)
-
No doubt the logic must be done at the client for this type of thing.
This is OT, but I've seen many questions like this, and I've never understood the "why". What the heck, spit out a page, tell the user they have x number of minutes to submit, if they're late, they loose. So sorry.
If you're mean enough to have a time limit, why bother being nice enough to show them how much time is left? Heck, they already have many clocks.
Just my unsolicited opinion :)
Mike
-
So, despite of Mike Hildner’s opinion. Does anybody have such script (VBS or Java)?
Thanks.
-
-