你可以使用一個虛擬的提交按鈕:
<%@ Page Language="C#" AutoEventWireup="true" %>
<script type="text/C#" runat="server">
protected void BtnClick(object sender, EventArgs e)
{
System.Threading.Thread.Sleep(2000);
result.Text = DateTime.Now.ToLongTimeString();
}
</script>
<!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>
</head>
<body>
<form id="form1" runat="server">
<button type="button" onclick="this.disabled='disabled';document.getElementById('<%= btn.ClientID %>').click();">Start processing</button>
<asp:Button ID="btn" runat="server" OnClick="BtnClick" style="display:none;" />
<asp:Label ID="result" runat="server" />
</form>
</body>
</html>
@Darin PLZ幫我http://stackoverflow.com/questions/2507844/how-to-use-jquery-to-paginate -json數據 – 2010-03-25 11:58:58