jquery autocomplete not sure how to load the C# handler
<p>I've got a simple textbox on my asp.net page wrapped around an updatepanel:</p>

<pre><code>&lt;asp:UpdatePanel ID="UpdatePanel1" UpdateMode="Always" ChildrenAsTriggers="true" runat="server"&gt;
                                    &lt;ContentTemplate&gt;
                                        &lt;asp:TextBox ID="txtShipToName" runat="server" 
                                            ToolTip="Enter a name such as a company name or contact name." 
                                            MaxLength="50"&gt;&lt;/asp:TextBox&gt;
                                    &lt;/ContentTemplate&gt;
                                    &lt;/asp:UpdatePanel&gt;
</code></pre>

<p>Trying to implement autocomplete...so I created an .ashx file (an IHttpHandler) like so:</p>

<pre><code> public class LoadAddress : IHttpHandler
    {
        public void ProcessRequest(HttpContext context)
        {
            DataSet ds;
            Dictionary&lt;long, string&gt; lstAddresses = new Dictionary&lt;long, string&gt;();

            ds = BL.GetAddresses(string.Empty, "both", 0, 100); //just snatching some data...

            foreach(DataRow dr in ds.Tables[0].Rows)
            {
                lstAddresses.Add(Convert.ToInt64(dr["AddressID"].ToString()), dr["Name"].ToString());
            }

            StringBuilder builder = new StringBuilder();

            foreach (KeyValuePair&lt;long, string&gt; item in lstAddresses)
            {
                builder.Append(string.Format("{0}|{1}|{2}",
                      item.Value,
                      item.Key,
                      Environment.NewLine));
            }

            context.Response.Write(builder.ToString());
        }

        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
</code></pre>

<p>But I'm not sure how to call it in jquery, I tried:</p>

<pre><code> $("#&lt;%= txtShipToName.ClientID %&gt;").autocomplete('LoadAddress.ashx').
        result(function (event, data, formatted) { // data[0] : Address, data[1] : Address ID
        });
</code></pre>

<p>But result is undefined, notice this method doesnt even exist...how can I call LoadAddress.ashx?</p>

<h1>Edit</h1>

<p>I added into the web config file:</p>

<pre><code>    &lt;httpHandlers&gt;
      &lt;add verb="*" path="LoadAddress.ashx" type="MyShipper.LoadAddress"/&gt;
    &lt;/httpHandlers&gt;
</code></pre>

<p>But the autocomplete doesnt seem to work...in the jquery I changed it to simply:</p>

<p><code>$("#&lt;%= txtShipToName.ClientID %&gt;").autocomplete('LoadAddress.ashx');</code></p>

<p>But like I said no autocomplete is coming up.  No errors in the developers tools in chrome.
What could I be missing?</p>
