HEN JIANDAN
javascript 實現
<!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 runat="server">
<title>未命名頁面</title>
<script language="javascript" type="text/javascript" src="JS/jquery-1.3.2.min.js"> </script>
<script language="javascript" type="text/javascript">
function ShowProcess()
{
var gd=$("#GridView1");
if(gd!=null)
{
var html=" <tr><td>Loading....</td></tr> ";
gd.html(html);
}
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
<asp:Button ID="Button1" runat="server" OnClick="Button1_Click" OnClientClick=" ShowProcess()"
Text="Button" />
<asp:GridView ID="GridView1" runat="server">
</asp:GridView>
</div>
</form>
</body>
</html>
ajax不就是干这个的吗?
如果用ajax的话,updateProgress就可以满足你的要求了