Active Server Pages Programming (ASP)/Timer
Expert: Srini Nagarajan - 6/21/2005
QuestionHi Srini,I want to create a timer in C# that will countdown from a specified timer e.g.2minutes and will then make visible some labels.The Problem is that it has to work on a web form , NOT on a windows form.If you have any ideas , it would be great!
It would also help if you could send me a Javascript that would do the same job.The problem here is that it has to be independant cause the page if refreshed and the timer must not start again from the beginning.
Thanks in advance
Geo.
AnswerHi
For windows form, I haven't work much with it...
You can't do anything refresh screen on javascript, you can start with certain time or you can create a Cookie and check the start time and refresh the value.
Here is the detail.
Have a cookie start time..
if the cookie exists and start time got some value deduct the time and display the remaining period
Happy programming!
-Srini