Home All Groups Group Topic Archive Search About
Author
19 Apr 2005 2:02 PM
yoshitha
hi ,
am developing quiz application.

the questions will be displayed one at a time after clicking next button
only the next question will be displayed.

for evry test the time to finish this test will be maintained in back end.

so  i set 75 minutes for a particulat test. after 75 minutes whether the

candidates completed all the question or not but the test must be closed.

can anybody tell me how to do this one.

thanx in advance
yoshitha

Author
19 Apr 2005 8:24 PM
Ken Cox [Microsoft MVP]
Get the starting time in ticks and add to it however many ticks there are in
75 minutes. Store the result in a Session variable.

Whenever the Next button is clicked, get the number of ticks from the
current time Now(). Test that it is less than the value you stored in the
Session variable. If less, let the user keep going. If not, end the test.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemtimespanclasstickstopic.asp


Show quoteHide quote
"yoshitha" <jyothir***@nannacomputers.com> wrote in message
news:eDpmyfORFHA.3096@TK2MSFTNGP12.phx.gbl...
> hi ,
> am developing quiz application.
>
> the questions will be displayed one at a time after clicking next button
> only the next question will be displayed.
>
> for evry test the time to finish this test will be maintained in back end.
>
> so  i set 75 minutes for a particulat test. after 75 minutes whether the
>
> candidates completed all the question or not but the test must be closed.
>
> can anybody tell me how to do this one.
>
> thanx in advance
> yoshitha
>
>