<body> <!-- 頁頭開始 -->
這個簡單,你去找AspNetPager72這個分頁控件,他有演示代碼,還是樣式代碼,無刷新分頁,用控件拖上去就行了,用AJAX Extensions 裏面的ScriptManager,UpdatePanel套住你的分頁就可以了。
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
你的分頁
</ContentTemplate>
</asp:UpdatePanel>
這樣就能實現無刷新分頁了,但是用這個控件有個問題就是,在這個控件裏面的不能用 Response下的提示框,必須要用另外一種ScriptManager.RegisterStartupScript(UpdatePanel1, UpdatePanel1.GetType(), "", "alert('提示內容);", true);