Link to home
Start Free TrialLog in
Avatar of jseneris
jseneris

asked on

Problem with Asp.Net AJAX AutocompleteExtender

Hi,

I'm having an awful time get the Autocomplete extender working for a site.  I've got the webservice set it, it gets called and returns the list of suggestions, but it's not showing the list of suggestions on the page.  Could there be a setting I'm missing on the textbox?

Also, if I don't specify at the creation of the web site that it needs to be AJAX-enabled, what's the easiest way to change it?

Thanks.
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
 
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    
    <form id="form1" runat="server">
     <asp:ScriptManager ID="ScriptManager1" runat="server">
   </asp:ScriptManager>
   <div>
        <asp:TextBox ID="TextBox1" runat="server" ></asp:TextBox>
        <cc1:AutoCompleteExtender runat="server" 
                ID="autoComplete1" 
                TargetControlID="TextBox1"
                ServicePath="AutoComplete.asmx" 
                ServiceMethod="GetCompletionList"
                MinimumPrefixLength="2" 
                CompletionInterval="1000"
                EnableCaching="true"
                CompletionSetCount="12">
        </cc1:AutoCompleteExtender>
 
    </div>
    </form>
</body>
</html>

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of jseneris
jseneris

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial