Asp.net页面闪烁的问题,用户控制其中的计时器。 [英] Asp.net page flickering issue having, User control with timer in it.

查看:122
本文介绍了Asp.net页面闪烁的问题,用户控制其中的计时器。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

页面P包含用户控件U.该用户控件U包含计时器T.当计时器T tick事件发生时,页面P在页面滚动期间闪烁。



任何阻止此页面闪烁的解决方案。



定时器T每8秒勾选一次。

A page P contain user control U . That user control U contains a timer T . When the timer T tick event occurs then the page P is flickered during scrolling of the Page P.

Any solution to stop this page flickering.

Timer T tick every 8 seconds.

推荐答案

在页面指令中使用更新面板或添加下面



Use Update Panel or Add below in your Page directive

MaintainScrollPositionOnPostback="true"




你可以查看以下链接。

由于计时器导致的屏幕闪烁 [ ^ ]

http://go4answers.webhost4life.com/Example/flickering-problem-while-ajax-timer- 168923.aspx [ ^ ]

http://www.dotnetspark .com / links / 37216-page-flickering-problem-updatepannel - timer.aspx [ ^ ]
Hi,
You can review below links.
Screen Flickering due to Timer[^]
http://go4answers.webhost4life.com/Example/flickering-problem-while-ajax-timer-168923.aspx[^]
http://www.dotnetspark.com/links/37216-page-flickering-problem-updatepannel--timer.aspx[^]


确保只为更新面板使用异步回发触发器。 />


在页面P上将usercontrol保留在Update面板中并将更新模式设置为always



它可能有效尝试一下。
Be sure to use only asynchronous postback triggers for your update panel.

On page P keep the usercontrol in an Update panel and set update mode to always.

it might work try it out.


这篇关于Asp.net页面闪烁的问题,用户控制其中的计时器。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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