Connecting Tech Pros Worldwide Forums | Help | Site Map

refreshing label control

barry
Guest
 
Posts: n/a
#1: Nov 19 '05
The following code, in windows, shows the elapsing time in a label control.
Is there an equivalent method for asp.net dealing with refreshing the label
control?

Do Until Date.Now >= endTimeSpan
curTime = Date.Now
labelControl.Text = _
curTime.ToString("hh:mm:ss:ff")
labelControl.Refresh()
Loop
thanks


Steve C. Orr [MVP, MCSD]
Guest
 
Posts: n/a
#2: Nov 19 '05

re: refreshing label control


You'll need to use some client side script for the timer.
Here's an example that uses the javascript setTimeout function.
http://www.crowes.f9.co.uk/Javascript/timer.htm

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net


"barry" <flagisup@ix.netcom.com> wrote in message
news:uDW9fvaNFHA.2544@TK2MSFTNGP10.phx.gbl...[color=blue]
> The following code, in windows, shows the elapsing time in a label
> control.
> Is there an equivalent method for asp.net dealing with refreshing the
> label
> control?
>
> Do Until Date.Now >= endTimeSpan
> curTime = Date.Now
> labelControl.Text = _
> curTime.ToString("hh:mm:ss:ff")
> labelControl.Refresh()
> Loop
> thanks
>
>[/color]


Closed Thread