0

今天我对 ASP.NET AJAX Timer Control 进行了第一次测试,希望它能让我不断更新我的网站。

目前,它只更新一次;这与以前的 .NET 计时器的行为不匹配。

AJAX Timer 控件是否仅用于更新项目一次?还是我需要使用另一个框架?

4

3 回答 3

1

不,它会定期更新。确保您的计时器已启用并且间隔设置正确,然后尝试将其放入更新面板中。适用于我的页面 * 个人资料页面中的链接。

于 2008-11-02T05:48:23.360 回答
0

You could try to check your implementation against what is described in this tutorial on MSDN (Walkthrough).

"The Timer control can work as a trigger either inside or outside an UpdatePanel control. This example shows how to use the Timer control inside an UpdatePanel control. For an example of using a Timer control as a trigger outside an UpdatePanel control, see Walkthrough: Using the ASP.NET Timer Control with Multiple UpdatePanel Controls."

于 2008-11-02T09:32:26.810 回答
0

查看 setInterval 函数。一个很好的解释是here。

于 2008-11-02T17:26:42.047 回答