带计时器的AJAX更新面板 [英] AJAX Update panel with timer

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

问题描述


我有一个与更新面板有关的问题.在我的项目中,我试图显示提醒.为此,我在更新面板中添加了一个计时器以检查提醒.在滴答事件中,我为此编写了代码.此计时器位于放置在所有页面中的用户控件内.我在所有其他页面中都使用了更新面板,并为其使用了常见的更新进度.现在我要解决这个问题

在计时器滴答事件中,另一个更新面板中的所有控件也会刷新.通过将页面中的更新面板设置为条件面板,可以防止这种情况的发生.但是我有很多页面,并且将它设置为条件时存在一些问题.

有什么办法可以隔离带有计时器的更新面板.我只希望刷新该特定更新面板中的控件.

关于问候
Nidhin

Hi
I have an issue related to update panels. In my project i''m trying to show reminders; for that i added a timer inside an update panel to check for reminders. In it''s tick event i wrote the code for it. This timer is inside a user control which is placed in all pages. I have used update panels in all other pages and used a common update progress for it. Now i will come to the issue

In the timer tick event all the controls inside the other update panel also getting refreshed. I''m able to prevent this by making the update panels in the pages as conditional. But i have many pages and there are some issues in making it as conditional.

Is there any way to isolate the update panel with timer. I want only the controls in that specific update panel to be refreshed.

With regards
Nidhin

推荐答案

1.您是否正在使用带有UpdatePanel + Timer的用户控件?
2.我假设通用的Update方法正在更新更新面板的所有实例,而不是UpdatePanel中的计时器.
3.您可以获取UpdatePanel的特定实例并触发Update()
1. Are you using a user control with UpdatePanel + Timer?
2. I am assuming the common Update method is updating the all instances of update panel and not the timer inside the UpdatePanel .
3. You can get the specific instance of the UpdatePanel and fire the Update()


这篇关于带计时器的AJAX更新面板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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