Well, the first time the user loads the page, load the current time
(System.DateTime.Now) into something (talk about that in a bit). The last
time, you can do something like:
dim seconds as int = DateTime.Now.Subtract(StartTime).TotalSeconds
About where to store the start time. As far as I'm concerned, it's a
security issue. For performance, you can store it in the viewstate or a
form field (same difference), but then the value could be changed by the
user. Depending on the environment, that might by very unlikely. If this
isn't tolerable, you'll need to use a server-side persistence mechanism,
such as a database or a session.
Karl
--
MY ASP.Net tutorials
http://www.openmymind.net/
"Mick" <sa****@libertysurf.fr> wrote in message
news:41***********************@news.free.fr...
Hi,
Tryin to do exam web app.
I need to insert a timer in my app just to check the time the user did to
pass the exam.
There's just one page which reload for each question until the last one.
How could I do that ?
Thks for help.