自动刷新页面的某个部分 [英] Automatic refresh a certain part of page automatically

查看:79
本文介绍了自动刷新页面的某个部分的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好

我想知道如何刷新页面的某个部分自动更新结果。

Just Like.espncrickinfo.com

Hi guys
I want to know How refresh a certain part of page automatically n updated the results.
Just Like.espncrickinfo.com

推荐答案

使用更新面板 [ ^ ]



另见 UpdatePanel类 [ ^ ]

将ASP.NET UpdatePanel控件与主页一起使用 [ ^ ]
Use Update Panel[^]

Also see UpdatePanel Class[^]
and Using the ASP.NET UpdatePanel Control with Master Pages[^]


您需要检查 UpdatePanel控件概述 [ ^ ]。



浏览使用ASP.NET AJAX了解部分页面更新 [ ^ 为了更好地理解。



参见示例 [ ^ ]。



谢谢...
You need to check UpdatePanel Control Overview[^].

Go through Understanding Partial Page Updates with ASP.NET AJAX[^] for better understanding.

See an example[^].

Thanks...


实现该功能有两种方法:

1)对页面的上述特定部分使用iframe并且在每个iframe中为特定时间段后的页面刷新添加元标记。

2)在更新面板中包装要刷新的页面部分,并在每个更新面板中添加带有自动收报机时间的计时器控件。在计时器的tick事件中写入重新加载数据的功能。
There are two approaches to achieve that functionality:
1) Use iframes for the said "certain parts" of your page and in every iframe add meta tag for page refresh after certain time period.
2) Wrap parts of page to be refreshed inside update panel and add a timer control with ticker time in each update panel. In your timer''s tick event write the functionality to reload data.


这篇关于自动刷新页面的某个部分的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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