Copy codeThe Code is as follows: <asp: ScriptManager ID = "smScriptManager" runat = "server">
</Asp: ScriptManager>
Copy codeThe Code is as follows: <asp: UpdatePanel ID = "upLinkmanList" UpdateMode = "Conditional" runat = "server">
<ContentTemplate>
// The data part to be updated, such as a Repeater, including the paging control;
</ContentTemplate>
</Asp: UpdatePanel>
Copy codeThe Code is as follows: // register the page as Ajax in the background
AjaxPro. Utility. RegisterTypeForAjax (typeof (the last word of the Inherits page to be registered, for example, CustomerList. aspx, CustomerList ));
// Register the asynchronous control, which contains ten linkbuttons (lnkbtnRefreshLinkman) to call the data update method in the background;
This. smScriptManager. RegisterAsyncPostBackControl (lnkbtnRefreshLinkman );
// Register the paging control this. smScriptManager. RegisterAsyncPostBackControl (this. Pager );
Copy codeThe Code is as follows: // <summary>
/// Refresh the contact list
/// </Summary>
/// <Param name = "sender"> </param>
/// <Param name = "e"> </param>
Public void RefreshLinkmanList (object sender, EventArgs e)
{
// Update the data contained in the Ajax control. The UpdateMode of the Ajax control must be specified as Conditional.
UpLinkmanList. Update ();
}
Copy codeThe Code is as follows: // call The onclick event of Linkbutton in the foreground script method. Remember to import the reference of the Jquery script file first.
$ ("# <% = LnkbtnRefreshLinkman. ClientID %>"). click ();