国产一级a片免费看高清,亚洲熟女中文字幕在线视频,黄三级高清在线播放,免费黄色视频在线看

打開(kāi)APP
userphoto
未登錄

開(kāi)通VIP,暢享免費(fèi)電子書(shū)等14項(xiàng)超值服

開(kāi)通VIP
下拉框自動(dòng)完成(autocomplete)帶有分頁(yè)功能SutaraLumpur

效果圖:

SutaraLumpur-jQuery.ajaxComboBox.js簡(jiǎn)介地址:http://d.hatena.ne.jp/sutara_lumpur/20090124/1232781879

下載地址:https://github.com/SutaraLumpur/jquery.ajaxComboBox.js/zipball/master

html代碼:

  1. <input type="text" name="txtZdType" id="txtZdType" autocomplete="off" />  
javascript代碼:
[javascript] view plain copy
  1.     <script src="../Scripts/jquery-1.8.3.min.js" type="text/javascript"></script>  
  2.     <link href="../Scripts/acbox/jquery.ajaxComboBox.css" rel="stylesheet" type="text/css" />  
  3.     <script src="../Scripts/acbox/jquery.ajaxComboBox.7.1.js" type="text/javascript"></script>  
  4.     <script type="text/javascript">  
  5.         $(function () {  
  6.             //選擇入院診斷Ajax自動(dòng)完成  
  7.             $('#txtZdType').ajaxComboBox("/WebService/AjaxService.asmx/GetBaicd", { lang: 'en', per_page: 15, field: 'Name', list_field: 'py' });  
  8.         });  
  9.     </script>  
C#  WebService代碼:
[csharp] view plain copy
  1.         /// <summary>  
  2.         /// 根據(jù)傳人的參數(shù),分頁(yè)的診斷數(shù)據(jù)  
  3.         /// </summary>  
  4.         /// <param name="page_num">當(dāng)前頁(yè)碼</param>  
  5.         /// <param name="per_page">每頁(yè)顯示條數(shù)</param>  
  6.         [WebMethod]  
  7.         public void GetBaicd(int page_num, int per_page)  
  8.         {  
  9.             //string and_or, string db_table, string[][] order_by, string[][] desc, string[] search_field;  
  10.             HttpRequest Request = HttpContext.Current.Request;  
  11.             string q_word = Request["q_word[]"];  
  12.             ba_icd10BLL bll = new ba_icd10BLL();  
  13.             int count = bll.GetCount();//總條數(shù)  
  14.             StringBuilder sb = new StringBuilder();  
  15.             sb.Append("{\"result\":");  
  16.             string strWhere = "";  
  17.             if (!string.IsNullOrWhiteSpace(q_word))  
  18.             {  
  19.                 strWhere = string.Format("where Py like '{0}%' or Name like '{0}%'", q_word);  
  20.             }  
  21.             List<ba_icd10Info> lst = bll.GetPagerList(page_num, per_page, strWhere);  
  22.             if (lst != null && lst.Count > 0)  
  23.             {  
  24.                 JavaScriptSerializer jss = new JavaScriptSerializer();  
  25.                 jss.Serialize(lst, sb);  
  26.             }  
  27.             sb.AppendFormat(",\"cnt_whole\":{0}}}", count);  
  28.             //return sb.ToString();  
  29.             HttpContext.Current.Response.Write(sb.ToString());  
  30.             HttpContext.Current.Response.End();  
  31.         }  

ps:當(dāng)前項(xiàng)目使用的時(shí)候,修改了網(wǎng)上下載的jquery.ajaxComboBox.7.1.js,

改動(dòng)位置:69,87行,文件路徑,1293 匹配正則,1302自動(dòng)完成匹配字段,1827行賦值到其它文本框。

本站僅提供存儲(chǔ)服務(wù),所有內(nèi)容均由用戶(hù)發(fā)布,如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請(qǐng)點(diǎn)擊舉報(bào)
打開(kāi)APP,閱讀全文并永久保存 查看更多類(lèi)似文章
猜你喜歡
類(lèi)似文章
.NET Jquery MsSql實(shí)現(xiàn)仿百度輸入自動(dòng)補(bǔ)全
淺析JSONP-解決Ajax跨域訪(fǎng)問(wèn)問(wèn)題
自定義分頁(yè)標(biāo)簽
博客園 - 二十四畫(huà)生的Blog - [DNN學(xué)習(xí)所得]如何防止頁(yè)面中的敏感信息被提取
ASP.NET MVC:多語(yǔ)言的三種技術(shù)處理策略
play framework學(xué)習(xí)筆記之 ajax集成使用
更多類(lèi)似文章 >>
生活服務(wù)
分享 收藏 導(dǎo)長(zhǎng)圖 關(guān)注 下載文章
綁定賬號(hào)成功
后續(xù)可登錄賬號(hào)暢享VIP特權(quán)!
如果VIP功能使用有故障,
可點(diǎn)擊這里聯(lián)系客服!

聯(lián)系客服