在ASPX页面中自动刷新页面的代码

问题描述:

我想自动刷新页面,如板球评分站点

i want refresh page automatically like cricket score site

嗨阿斯温,

您必须使用ASP.Net AJAX来实现某些部分的自动刷新,而无需加载整个页面.可以使用UpdatePanel完成.
Hi Aswin,

You have to use ASP.Net AJAX to implement the auto refresh of some portion without loading the whole page. This can be done using the UpdatePanel.


看看以下内容:
计时器控制 [计时器控件概述 [
Have a look at these:
Timer control[^]
Timer Control Overview[^]

These should help you out.


使用javascript SetTimeout函数
根据需要设置刷新时间(以毫秒为单位).

谢谢,
Hiren Solanki
use javascript SetTimeout Function
Set Refresh time in milliseconds as you want.

Thanks,
Hiren Solanki