开发者

System.Web.UI.Timer inteference with event handling?

I'm currently having a problem with what seems like the Timer_Tick event interfering with the event handling for other controls within the UpdatePanel.

For now I have a Countdown label and some buttons inside an UpdatePanel. The Timer is outside the UpdatePanel and its Tick event is registered as a trigger for the panel. On every Tick, the Countdown's Text property is modified.

Whenever a button is clicked, a pop-up box will 开发者_运维百科appear. However, I notice that if I click the button just when a Tick occurs, nothing happens. I'm assuming that it is because the Click event does not register while the UpdatePanel is in the process of rendering its updated contents.

Should I be using another type of timer instead? Is there a way to force the Click event to interrupt the Tick event? Or are there other ways to fix this issue?

Thank you.


You can nest your UpdatePanels so that your Label has it's own UpdatePanel.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜