Using ajax autocompleteextender control in asp.net
<p>I am using ajax AutoCompleteExtender control and using .net 3.5. I add the dll successfully in my toolbox tab.<br>
So first of all i create a website and then drag the script manager, textbox and AutoCompleteExtender control in my default.aspx page. Then i add webservice and define one web method i.e. GetSuggestions(). My program is executed successfully but i am not getting the correct output. When i put any text in textbox, it is not populating any suggestion. Please help me. </p>

<p>Here is my webservice code:         </p>

<pre><code>using System;
using System.Collections;
using System.Linq;
using System.Web;
using System.Web.Services;
using System.Web.Services.Protocols;
using System.Xml.Linq;
using System.Collections.Generic;

/// &lt;summary&gt;
/// Summary description for WebService
/// &lt;/summary&gt;
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
// To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. 

[System.Web.Script.Services.ScriptService]
[System.ComponentModel.ToolboxItem(false)]

public class MyAutocompleteService : WebService
{
    [WebMethod]

    public string[] GetSuggestions(string prefixText, int count)
    {
        List&lt;string&gt; responses = new List&lt;string&gt;();

        for (int i = 0; i &lt; count; i++)

            responses.Add(prefixText + (char)(i + 65));

        return responses.ToArray();

    }

}                                                                                               
</code></pre>

<p>And Here is my default.aspx code:  </p>

<pre><code>&lt;%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %&gt;

&lt;%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %&gt;

&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;

&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
&lt;head runat="server"&gt;
    &lt;title&gt;Untitled Page&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
    &lt;form id="form1" runat="server"&gt;
    &lt;div&gt;

        &lt;asp:ScriptManager ID="ScriptManager1" runat="server"&gt;
        &lt;Services &gt;
        &lt;asp:ServiceReference Path="~/MyAutocompleteService.asmx" /&gt;
        &lt;/Services&gt;
        &lt;/asp:ScriptManager&gt;
        &lt;br /&gt;
        &lt;asp:TextBox ID="TextBox1" runat="server"&gt;&lt;/asp:TextBox&gt;
        &lt;br /&gt;

        &lt;asp:AutoCompleteExtender ID="AutoCompleteExtender1" runat="server" 
            ServiceMethod="GetSuggestions" ServicePath="MyAutocompleteService.asmx" 
            TargetControlID="TextBox1" MinimumPrefixLength ="1" 
            CompletionSetCount ="12" EnableCaching="true"&gt;
        &lt;/asp:AutoCompleteExtender&gt;
        &lt;br /&gt;
        &lt;br /&gt;

    &lt;/div&gt;
    &lt;/form&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>So please help me where i am missing.</p>
