Question:
i want the coding for timer event in asp.net?
Hari H
2008-03-24 03:47:56 UTC
Hai now i am doing my project online examination using asp.net. In that i want to know how to expired the page ( for example if the student log in and write the examination meanwhile after particular time the message must be display that ur time up and also the page also closed give me a coding for that)
Four answers:
Navneet Brar
2008-03-24 06:12:39 UTC
You can use Javascript timer along with ASP.Net



Start the timer using setInterval or setTimeout function and stop the timer after specified time with an alert message box and close the window.



Learn javascript timer here:

http://programming.top54u.com/category/JavaScript-Tutorials.aspx
2008-03-24 10:57:30 UTC
In ASP you only run the code as the page is loaded but having studied ASP you should know that already. Therefore you can not use ASP for a timer event.



What you do is put some stuff into the HTML header to expire the page so you can't use the back button and jump to another page. This code can be found if you Google for it.



Also look at the session object. You might find that useful.
masood s
2008-03-24 12:47:34 UTC
The coding for timer event in asp.net The tool of timer event are available, select and working the timer event.



Timer event



timer event coding will be available then select this tool



oosagib
2008-03-24 10:51:53 UTC
u need a book for that


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...