Active Server Pages Programming (ASP)/Timer

Advertisement


Question
Hi 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.

Answer
Hi

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

Active Server Pages Programming (ASP)

All Answers


Answers by Expert:


Ask Experts

Volunteer


Srini Nagarajan

Expertise

I can answer any kind of questions in ASP.NET, C#, VB.NET, SharePoint 2007, ASP, Coldfusion, Powerbuilder 7.00 / 8.00, JAVA servlets, MS SQL 2000 / MSSQL7, Sybase

Experience

Contact me if you need any custom development on ASP.NET, ASP, SharePoint 2007, Coldfusion, Powerbuilder.

©2012 About.com, a part of The New York Times Company. All rights reserved.