I'm trying to use the JQuery Autocomplete, but I guess I am having trouble getting the format it expects from my handler.
Here is what the handler does. This was in another SO question....
context.Response.ContentType = "text/plain";
var companies = GetCompanies(); //This returns a list of companies (List<string>)
foreach (var comp in companies)
{
context.Response.Write(comp + Environment.NewLine);
}
This doesn't work. It is definately getting called and it is returning what I would expect this code to return. Any ideas?