更新面板和updateproggress出现问题 [英] Problem with update panel and updateproggress

查看:160
本文介绍了更新面板和updateproggress出现问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在侧面更新面板的母版页中有计时器,计时器运行5秒后.我在子页面中还有一个带有updateproggress的更新面板.
问题是,每隔5秒,母版页中就会触发计时器滴答事件,原因是子页中发生了回发事件,并且更新进度可见.

所以我的问题是如何解决这个问题.

I have timer in master page in side update panel,timer runs after 5 sec.and i also have an update panel with an updateproggress in child page.
The problem is,after every 5 sec the timer tick event fires in master page for that a post back event occur in child page and the update progress visible.

so my question is how to over come this problem.

推荐答案

这就是它应该做的.

在更新面板中使用计时器是一个坏主意,因为要更新计时器,您必须将部分或整页的回发发送回服务器以更新时间,从而导致显示进度消息,从而中断用户体验每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]


这篇关于更新面板和updateproggress出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆