ASP.net帮助,自动刷新网页 [英] ASP.net help with auto refresh web page
问题描述
我的工作在哪里,我需要从一个的InterBase数据库中的数据显示为网格视图的Web项目。然而这个数据是不断变化的,四设法查询数据库和显示数据到一个网格图。我现在被困在我怎么能自动在5分钟后刷新页面,以便新的数据查询和显示。
I am working on a web project where I am required to display data from a interbase database into a grid view. however this data is constantly changing, iv managed to query the database and display the data into a grid view. I am now stuck on how I can automatically refresh the page after 5 minutes so that the new data is queried and displayed.
你能对我怎么可能实现上述讨好的建议。
Can you please advice on how I may achieve the above.
推荐答案
如果你不使用AJAX,你可以设置的 META
刷新标签重新加载页面每隔5分钟。
If you are not using AJAX, you can set a META
refresh tag to reload the page every 5 minutes.
如果你使用AJAX,可以设置 的setTimeout
以重新获取数据。
If you do use AJAX, you can set a setTimeout
to refetch the data.
这篇关于ASP.net帮助,自动刷新网页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!