且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

更新面板和updateproggress出现问题

更新时间:2022-05-07 23:33:27

这就是它应该做的.

在更新面板中使用计时器是一个坏主意,因为要更新计时器,您必须将部分或整页的回发发送回服务器以更新时间,从而导致显示进度消息,从而中断用户体验每5秒就会发生什么事.

您确实应该在客户端使用Javascript作为计时器.

下面是翻转时钟,您可以启动时钟,显示时间并触发多个回调事件,例如开始和停止.

您将需要学习如何使用jquery安装和编程翻转时钟


[活动时钟]
That''s what it suppose to do.

That a bad idea using a timer in the update panel, because to update the timer, you have to send a partial or full page postback back to the server to update the time, resulting in a progress message being displayed, the user experience being interrupted every 5 seconds, and what ever else will occur.

You should really use Javascript on the client side as the timer.

Below is flip clock, you can start your clock, display the time, and fire multiple callback events, like start and stop.

You''ll need to learn how to use jquery to install and program the flip clock


[Flip Clock]