Ajax異步無刷新對(duì)局部數(shù)據(jù)更新
<asp:ScriptManager ID="smScriptManager" runat="server">
</asp:ScriptManager>
<asp:UpdatePanel ID="upLinkmanList" UpdateMode="Conditional" runat="server">
<ContentTemplate>
//要更新的數(shù)據(jù)部分,如一個(gè)Repeater,包括分頁控件;
</ContentTemplate>
</asp:UpdatePanel>
//后臺(tái)需要把頁面注冊(cè)為Ajax
AjaxPro.Utility.RegisterTypeForAjax(typeof(所要注冊(cè)的頁面Inherits的最后一個(gè)單詞,如:頁面為:CustomerList.aspx,則這里就是CustomerList));
//注冊(cè)異步控件,lnkbtnRefreshLinkman十個(gè)Linkbutton,用于調(diào)用后臺(tái)的數(shù)據(jù)更新方法;
this.smScriptManager.RegisterAsyncPostBackControl(lnkbtnRefreshLinkman);
//注冊(cè)分頁控件 this.smScriptManager.RegisterAsyncPostBackControl(this.Pager);
/// <summary>
/// 刷新聯(lián)系人列表
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
public void RefreshLinkmanList(object sender, EventArgs e)
{
//更新Ajax控件所包含在內(nèi)的數(shù)據(jù),Ajax控件的UpdateMode必須指定為Conditional
upLinkmanList.Update();
}
//前臺(tái)腳本方法里調(diào)用Linkbutton的onclick事件,記得先導(dǎo)入Jquery腳本文件的引用哦
$("#<%=lnkbtnRefreshLinkman.ClientID %>").click();
- bootstrapTable+ajax加載數(shù)據(jù) refresh更新數(shù)據(jù)
- Vue.js 通過jQuery ajax獲取數(shù)據(jù)實(shí)現(xiàn)更新后重新渲染頁面的方法
- Vue2.X 通過AJAX動(dòng)態(tài)更新數(shù)據(jù)
- jquery+ajaxform+springboot控件實(shí)現(xiàn)數(shù)據(jù)更新功能
- 利用jQuery及AJAX技術(shù)定時(shí)更新GridView的某一列數(shù)據(jù)
- jquery ajax 局部無刷新更新數(shù)據(jù)的實(shí)現(xiàn)案例
- ajax頁面無刷新 IE下遭遇Ajax緩存導(dǎo)致數(shù)據(jù)不更新的問題
- ajax異步刷新實(shí)現(xiàn)更新數(shù)據(jù)庫
- ajax更新數(shù)據(jù)后,jquery、jq失效問題
- Ajax實(shí)現(xiàn)表格中信息不刷新頁面進(jìn)行更新數(shù)據(jù)
相關(guān)文章
asp.net實(shí)現(xiàn)文件無刷新上傳方法匯總
本文給大家介紹的是asp.net實(shí)現(xiàn)文件無刷新上傳的2種方法,分別是使用swfupload插件和uploadify插件,講述的十分細(xì)致全面,附上示例,有需要的小伙伴可以參考下。2015-06-06
C# 沒有動(dòng)態(tài)的數(shù)組,可以用arraylist或list取代
C#里沒有動(dòng)態(tài)的數(shù)組,只能用arraylist或list取代。2009-06-06
ASP.NET Sql Server安裝向?qū)В╝spnet_regsql.exe)錯(cuò)誤解決一例
這個(gè)程序是注冊(cè)網(wǎng)站的數(shù)據(jù)庫,從而提供Membership , Role , Profile 等等諸多功能和管理權(quán)限的控件的使用。2010-03-03
區(qū)分ASP.NET中g(shù)et方法和post方法
我們都知道,get是從服務(wù)器上獲取數(shù)據(jù),post是向服務(wù)器上傳數(shù)據(jù)。本文主要介紹ASP.NET中g(shù)et方法和post方法的區(qū)別,需要的朋友可以參考下2015-10-10
IIS 瀏覽aspx頁面出現(xiàn)無法顯示XML頁的解決方法分享
這篇文章介紹了IIS 瀏覽aspx頁面出現(xiàn)無法顯示XML頁的解決方法,有需要的朋友可以參考一下2013-11-11
asp.net core web api項(xiàng)目添加自定義中間件的實(shí)現(xiàn)
ASP.NET Core Web API項(xiàng)目中可以通過自定義中間件來對(duì)請(qǐng)求進(jìn)行時(shí)間戳校驗(yàn),本文就來介紹一下項(xiàng)目添加自定義中間件的實(shí)現(xiàn),具有一定的參考價(jià)值,感興趣的可以了解一下2025-01-01

