Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. label will not update

label will not update

Scheduled Pinned Locked Moved ASP.NET
announcement
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mtm88001
    wrote on last edited by
    #1

    I want to use a timer to update a label on my .aspx page OnTimedEvent.... Dim x as integer x = val(me.lblTime.text) x += 1 me.lblTime.text = x the label value updates if I look at the values during debugging; however, the asp page does not update.:confused:

    M 1 Reply Last reply
    0
    • M mtm88001

      I want to use a timer to update a label on my .aspx page OnTimedEvent.... Dim x as integer x = val(me.lblTime.text) x += 1 me.lblTime.text = x the label value updates if I look at the values during debugging; however, the asp page does not update.:confused:

      M Offline
      M Offline
      minhpc_bk
      wrote on last edited by
      #2

      If you run the code on the server side, it only can execute tasks on the server. So to perform something on the client side, the code needs to run on the client. In this case, you can use the setInterval method of the window object to do the same thing. Take a look at the setInterval[^] method as well as the sample code in MSDN.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups