怎样定时局部刷新datagrid?

来源:百度知道 编辑:UC知道 时间:2024/05/05 07:49:45
用vs2008中自带的AJAX Extensions,代码如下:
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
<title>数据的分布</title>
</head>
<body style="margin-top:0; background-color: Black">
<form id="form1" runat="server">
<div>
<table width="1024" border="0" align="center">
<tr>
<td style="text-align:center"><asp:Label ID="lblMsg" ForeColor="Yellow" Font-Names="黑体" Font-Size="35pt" Text="数据明细" runat="server" Width="382px"></asp:Label></td>
</tr>
</table>
<table width="99%" border=&

aspx文件

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>数据的分布</title>

<script type="text/javascript" language="javascript">
var sh = setInterval('refresh()', 1000);
function refresh() {
document.getElementById('<%= HiddenButton.ClientID %>').click();
}
</script>

</head>
<body style="margin-top: 0; background-color: Black">
<form id="form1"