Can somebody please give an example on passing key value pairs to a jQuery autocomplete list using a webservice.
Tanks for the help.
$('#txtBox1').autocomplete("Autocomplete.asmx/GetKeyValu",
{ dataType: "xml", datakey: "string", max: 10, minChars: 0 });
[WebMethod]
public Dictionary<string,string> GetKeyValu(string q, int limit)
{
Dictionary<string, string> dict = new Dictionary<string, string>();
dict.Add("key1", "valu1");
return dict;
}