是否可以在每个特定时刻后自动加载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[^]
看看这个:
在一段时间后自动刷新页面 [ ^ ]