bala murugan

bala murugan

  • NA
  • 27
  • 1.1k

Timer UI update

Feb 17 2021 6:19 PM
Hi All,
I have a asp web application, where we are showing current time in label using timer with interval 100ms. and inside the timer we are doing a TCP socket data read.
 
The problem is the current time shown is not updating properly. Its like , updating only for two seconds.
ex:
 
if current time is 10:00:00 the value shown is 10:00:00
if current time is 10:00:01 the value shown is 10:00:00 
if current time is 10:00:02 the value shown is 10:00:02  
 
1. Is there a way we can update the UI smoothly?
2. Handle the tcp data read separately.? (We need to do the TCP read every 100ms continuously.)
 
 
Kindly guide me
 
Regards,
Bala 

Answers (1)