JAVASCRIPT 把數據控件的innerhtml="<div>loading...</div>"
<!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">
function Loading()
{
var gr=document.getElementById("GridView1_DIV");
gr.innerHTML=" Loading...";
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:Button ID="Button1" runat="server" Text="Button" OnClientClick="Loading()" />
<div style="border:1px solid red;" id="GridView1_DIV">
<asp:GridView ID="GridView1" runat="server">
</asp:GridView>
</div>
</div>
</form>
</body>
</html>
上面对