AutoCompleteExtender not working.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • askaquest
    New Member
    • Feb 2007
    • 4

    #1

    AutoCompleteExtender not working.

    Hello,
    I am using AutoCompleteExt ender.The program Run without any errors.But It doesn't show suggestions bellow the textBox.
    My aspx page is as follows:

    [CODE=html] <form id="form1" runat="server">
    <asp:ScriptMana ger ID="ScriptManag er1" runat="server" />
    <asp:TextBox ID="myTextBox" runat="server" ></asp:TextBox>
    <cc1:AutoComple teExtender
    runat="server"
    Enabled="True"
    ID="autoComplet e1"
    TargetControlID ="myTextBox"
    ServiceMethod=" GetCompletionLi st"
    ServicePath="Au toComplete.asmx "
    MinimumPrefixLe ngth="1"
    EnableCaching=" true"
    CompletionSetCo unt="2"
    CompletionListC ssClass="autoco mplete_completi onListElement"
    CompletionListI temCssClass="au tocomplete_list Item"
    CompletionListH ighlightedItemC ssClass="autoco mplete_highligh tedListItem"
    DelimiterCharac ters=";, :">
    </cc1:AutoComplet eExtender>
    </form>
    [/CODE]
    and my webmethod as follows:

    [CODE=java] [System.Web.Serv ices.WebMethod]
    [System.Web.Scri pt.Services.Scr iptMethod]
    public string[] GetCompletionLi st(string prefixText, int count)
    {
    string[] names = {"AzamSharp","S cott","Alex","M ary","John","Al i","Sam","Sammy ",
    "Sandy","Michea l","Andy","Pete ","Steve","Bill "};

    return names;

    }
    [/CODE]
    I am not getting where is the problem?
    So pls guid me for this problem
    Thanks in advance.
    Regards,
    askaquest
    Last edited by acoder; Nov 17 '07, 12:20 PM. Reason: Added code tags
Working...