label will not update
-
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:
-
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:
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.