jQuery 插件autocomplete
官网 http://jqueryui.com/autocomplete/ http://api.jqueryui.com/autocomplete/#event-select http://stackoverflow.com/questions/9282320/jquery-ui-autocomplete-1-8-scroll http://jqueryui.com/autocomplete/#maxheight / . 创建 AjaxPage.aspx 页面,在其中定义 WebMethod 方法来返回 搜索页面需要的输入框所有提示条目。 后台代码如下: 1 using System.Collections.Generic; 2 using System.IO; 3 using System.Runtime.Serialization.Json; 4 using System.Web.Services; 5 6 public partial class AjaxPage : System.Web.UI.Page 7 { 8 [WebMethod] 9 public static string GetAllHints()10 {11 Dictionary<string, string> data = new Dictionary<string, string