<asp:UpdatePanel ID="upLinkmanList" UpdateMode="Cond
ITional" runat="server">
<ContentTemplate>
//要更新的数据部分,如一个Re
PEater,包括分页控件;
</ContentTemplate>
</asp:UpdatePanel>
//后台需要把页面注册为Ajax
Ajax
PRo.Utility.RegisterTypeForAjax(typeof(所要注册的页面Inherits的最后一个单词,如:页面为:CustomerList.aspx,则这里就是CustomerList));
//注册异步控件,lnkBTnRefreshLinkman十个Linkbutton,用于调用后台的数据更新方法;
this.smScriptManager.RegisterAsyncPostBackControl(lnkbtnRefreshLinkman);
//注册分页控件 this.smScriptManager.RegisterAsyncPostBackControl(this.Pager);
/// <summary>
/// 刷新联系人列表
/// </summary>
/// <par
am name="sender"></param>
/// <param name="e"></param>
p
ublic void RefreshLinkmanList(object sender, Event
args e)
{
&nbs
p; //更新Ajax控件所包含在内的数据,Ajax控件的UpdateMode必须指定为Conditional
upLinkmanList.Update();
}
//前台脚本方法里调用Linkbutton的onclick事件,记得先导入Jquery脚本文件的引用哦
$("
#<%=lnkbtnRefreshLinkman.ClientID %>").click();