function onReady() {
var textbox1ID = '<%= TextBox1.ClientID %>';
var textbox2ID = '<%= TextBox2.ClientID %>';
var textbox3ID = '<%= TextBox3.ClientID %>';
var cache = {};
$('#' + textbox1ID).autocomplete({
minLength: 0,
source: function(request, response) {
var term = request.term;
if (term in cache) {
response(cache[term]);
return;
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;
using System.Data.Sql;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using System.Text ;
namespace FineUI2
{
public class MuileCus : IHttpHandler
{
StringBuilder jsonString = new StringBuilder();
public void ProcessRequest(HttpContext context)
{
//System.Threading.Thread.Sleep(2000);
String term = context.Request.QueryString["term"];
if (!String.IsNullOrEmpty(term))
{
term = term.ToLower();
jsonString.Append("[{'value': 'jquery,label': 'jQuery', 'desc: the write less, do more, JavaScript library'},{'value': 'jquery-ui ldm12','label': 'jQuery UI ldm12', 'desc: the official user interface library for jQuery ldm'},{'value': 'sizzlejs,label': 'Sizzle JS','desc: a pure-JavaScript CSS selector engine'}]");