SA Developer .NET

Welcome to SA Developer .NET Sign in | Join | Help
in Search

AJAX Control Toolkit Autocomplete

Last post 07-29-2008, 9:47 by TopNode. 7 replies.
Sort Posts: Previous Next
  •  07-24-2008, 11:09 13639

    AJAX Control Toolkit Autocomplete

    Howdy Folks,

    I cant seem to get the Autocomplete going on a Test site that I build in VS2008. I got 4 controls on the form which is - ToolScriptManager, 2 * Textbox and AutoCompleteExtender. What happens is that when I start typing in the textbox nothing happens, but as soon as I tab to a second Textbox the Autocomplete list pops up and stays there.

    The Stylesheet and the Markup is the same as the Sample Website.

    Any Ideas?

    Thanks

  •  07-25-2008, 8:52 13664 in reply to 13639

    Re: AJAX Control Toolkit Autocomplete

    Hi

    Do you have only one AutoCompleteExtender control on your form, or do you have one for each textbox? I think you have to use one AutoCompleteExtender control for each textbox using the TargetControlID="myTextBox" property.

    Regards

    Paulo

     


    Homer: But every time I learn something new, it pushes out something old! Remember that time I took a home wine-making course and forgot how to drive?
    Marge: That's because you were drunk!
    Homer: And how!
  •  07-25-2008, 9:28 13667 in reply to 13664

    Re: AJAX Control Toolkit Autocomplete

    The autocomplete extender will only push up content if it is available for the entry you have submitted in the text

    This means, that if the autocomplete extender has a target method, either web method or other data source attached to it, which completes a list of "possibilities", according to what you have typed into the textbox.

    If nothing happens, it might either be that the ACE is not configured correct, check for java script errors (lower left in IE or Firebug for FF), or that there is a value to auto complete for the entry you have submitted.

    Refer to this

    Eric


    'Not everything is binary, if you look closer you might find some hexadecimal in there somewhere'
  •  07-25-2008, 10:22 13668 in reply to 13667

    Re: AJAX Control Toolkit Autocomplete

    Thanks for the replies. To answer your questions. Only one Textbox is connected to the Autocomplete extender. Eric - there is no errors on the page as you suggested I did check for that. Also there are "possibilities" for the values that I enter, problem is the dropdown only appears when the Textbox loses focus.

    Pedre

  •  07-25-2008, 16:40 13705 in reply to 13668

    Re: AJAX Control Toolkit Autocomplete

    TopNode:

    Thanks for the replies. To answer your questions. Only one Textbox is connected to the Autocomplete extender. Eric - there is no errors on the page as you suggested I did check for that. Also there are "possibilities" for the values that I enter, problem is the dropdown only appears when the Textbox loses focus.

    Pedre

    Can you post the code that you have on your ASPX page - just the bit that generates the autocomplete and the relevant textbox?
  •  07-28-2008, 16:48 13739 in reply to 13705

    Re: AJAX Control Toolkit Autocomplete

    Sorry for only posting now, here is the code for the problem.

     <asp:TextBox ID="txtAutoCompanyName" runat="server" Width="200px"></asp:TextBox>                            
      <ajaxToolKit:AutoCompleteExtender
             id="AutoCompleteClientName"
             runat="server"
             targetcontrolid="txtAutoCompanyName"
             ServicePath="AutoComplete.asmx"
             ServiceMethod="Get_All_CompanyNames"
             MinimumPrefixLength="4"
             CompletionInterval="1000"
             EnableCaching="true"
             CompletionSetCount="20"

    </ajaxToolKit:AutoCompleteExtender>

  •  07-28-2008, 20:20 13741 in reply to 13739

    Re: AJAX Control Toolkit Autocomplete

    TopNode:
    Sorry for only posting now, here is the code for the problem.
    Nuts. I stuck it into a new web site, created the relevant web service and method, and it worked perfectly. Indifferent

    Is it happening in more than one browser?

  •  07-29-2008, 9:47 13745 in reply to 13741

    Re: AJAX Control Toolkit Autocomplete

    Funny, thing is it works in other pages then on another couple of pages it doesn't. I have studied that page beyond the point that I will see something wrong so I am just gonna recreate it.

    Thanks for the input.

View as RSS news feed in XML
Powered by Community Server (Commercial Edition), by Telligent Systems