J
Jozef
Hi!
I've made web user control and put two timers, update panel and label control.
First timer - Timer1 - has interval 1s
Seconf timer - Time2 - has interval 5s
Also I have method to start timers, let we call it Start()
inside Start()
Timer1.Interval = 1000;
Timer1.Enabled = true;
Timer2.Interval = 5000;
Timer2.Enabled = true;
Inside Timer1_Tick i have something that do every 1s, also
the same thing is in Timer2_Tick but it executes every 5s.
Problem is that Timer1 works fine, but Timer2 works nothing.
I put breakpoint inside Timer2_Tick but nothing happens.
If i put inside Timer1_Tick program breaks on that line.
I'm little bit confused about that. Is it possible that two timers
can't work on same web user control? Or I'm doing something wrong?
I've made web user control and put two timers, update panel and label control.
First timer - Timer1 - has interval 1s
Seconf timer - Time2 - has interval 5s
Also I have method to start timers, let we call it Start()
inside Start()
Timer1.Interval = 1000;
Timer1.Enabled = true;
Timer2.Interval = 5000;
Timer2.Enabled = true;
Inside Timer1_Tick i have something that do every 1s, also
the same thing is in Timer2_Tick but it executes every 5s.
Problem is that Timer1 works fine, but Timer2 works nothing.
I put breakpoint inside Timer2_Tick but nothing happens.
If i put inside Timer1_Tick program breaks on that line.
I'm little bit confused about that. Is it possible that two timers
can't work on same web user control? Or I'm doing something wrong?