refreshing label control

Discussion in 'ASP .Net' started by barry, Mar 31, 2005.

  1. barry

    barry Guest

    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
     
    barry, Mar 31, 2005
    #1
    1. Advertising

  2. 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" <> wrote in message
    news:...
    > 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], Mar 31, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Shapper
    Replies:
    2
    Views:
    741
    Scott Mitchell [MVP]
    May 7, 2005
  2. Ben
    Replies:
    2
    Views:
    777
  3. Harlan Messinger

    Self-refreshing and non-self-refreshing controls

    Harlan Messinger, Aug 4, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    458
    =?Utf-8?B?Y2xpY2tvbg==?=
    Aug 4, 2006
  4. Harlan Messinger

    Self-refreshing and non-self-refreshing controls

    Harlan Messinger, Aug 3, 2006, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    187
    Harlan Messinger
    Aug 3, 2006
  5. Knut Krueger
    Replies:
    8
    Views:
    278
    Knut Krueger
    Aug 20, 2013
Loading...

Share This Page