是否可以在每个特定时刻后自动加载html页面? [英] Is it possible to load a html page automatically after every certain moment ?

查看:110
本文介绍了是否可以在每个特定时刻后自动加载html页面?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我在asp.net或普通html页面的后端运行调度程序,是否可以在每1小时或5分钟后加载一个网页?



基本上我想在每个特定时刻之后页面将自动重新加载?



is it possible to load a webpage after every 1 hour or five minutes if I run scheduler on the back-end of asp.NET or normal html page?

Basically I want after every certain moment the page will be reloaded autmatically?

<html>
    <head>
        <title>TestProgram </title>
      </head>
        <body>
					<P> Please follow this table:</P>
            <div id="testDiv">
          <table id="testTable1" border='1px' cellpadding='1' cellspacing='1' bgcolor='lightyellow' style='font-family:Garamond; font-size:medium'>
		<tr >
            <th>ID  </th>
            <th>NAME</th>
	    <th>CITY</th>
            <th>TestColum</th>
  
	   </tr>
        <tr >
          <td>111</td>
          <td >Devesh</td>
          <td >Ghaziabad</td>
          <td>test</td>
       </tr>
      
      
 
   </table>

</body>
</html>  





这是一个示例。

但我的页面有一个动态表格。不同的时间我的表会显示不同的数据。



然后我想在完成加载后每次都获取html内容。是否可以在调度程序的基础上加载页面?如果可能请给我一个建议。



This is a sample.
But my page has a dynamic table. Different time my table will show different data.

Then I want to take the html content every time after completing the load. Is it possible to load a page on the basis of a scheduler ? if possible please give me a suggestion.

推荐答案

只需使用Timer控件。

http://msdn.microsoft.com/en-us/library/bb386404(v = vs.140)的.aspx [ ^ ]
Simply use Timer control.
http://msdn.microsoft.com/en-us/library/bb386404(v=vs.140).aspx[^]


看看这个:



在一段时间后自动刷新页面 [ ^ ]


这篇关于是否可以在每个特定时刻后自动加载html页面?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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