带计时器的AJAX更新面板

带计时器的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()