1 Replies - 4745 Views - Last Post: 10 May 2009 - 10:47 AM Rate Topic: -----

#1 ctodal  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 10-May 09

Countdown timer for aspx

Posted 10 May 2009 - 09:16 AM

Hi

I really need some help here. I'm new at this and would like a timer that countdown a label in a webpage. The time will be set from user input. And the user input comes from a string in page_load like this. The string is being sent from another page, so i get it from a QueryString, i have tested that i got the correct string.


protected void Page_Load(object sender, EventArgs e)
	{
				if (!IsPostBack)
			   {
						string blindsMinute = Request.QueryString["blinds"];

				}
	}


What i would like is to convert the string to an int, no problem there either.

But how can i use timer to count down, lets say 10 minutes and the label will show like this. 10:00 and counting down.

When the countdown is complete i need another label to be set to ++ for each time the countdown is complete, and the timer will countdown from the user input again what is still 10:00.

Is this possible to handle with javascript, so the server side wont be working too much.

Any answer would be at help.

Thank you.

Is This A Good Question/Topic? 0
  • +

Replies To: Countdown timer for aspx

#2 Jayman  Icon User is offline

  • Student of Life
  • member icon

Reputation: 418
  • View blog
  • Posts: 9,532
  • Joined: 26-December 05

Re: Countdown timer for aspx

Posted 10 May 2009 - 10:47 AM

Javascript would be your best bet. You will find many Javascript countdown timer examples that are pretty simple to implement.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1