Geeks With Blogs
AzamSharp Some day I will know everything. I hope that day never comes.

I know that I am missing something small but not really sure what it is. I just added the configuration in the web.config file to upgrade my project to ATLAS. Most of the controls that I have tried are working with the exception of the AutoCompleteExtender control. I even tried debugging the application but it never reaches the web services method.

    <form id="form1" runat="server">
    <atlas:ScriptManager ID="sm"
    EnablePartialRendering="true" runat="server" />
    <div>     
    
    <asp:TextBox ID="MyTextBox" EnableTheming="false" runat="server" />
    <atlas:AutoCompleteExtender ID="autoTextBox" runat="server">
    <atlas:AutoCompleteProperties Enabled="true"
    MinimumPrefixLength="1" ServiceMethod="GetAllNames"
     ServicePath="MyService.asmx" TargetControlID="MyTextBox" />     
     </atlas:AutoCompleteExtender>
        <br />
        <br />
        &nbsp;<asp:DropDownList ID="DropDownList1"
        runat="server" BackColor="NavajoWhite"
            Font-Bold="True">
        </asp:DropDownList></div>
    </form>    

And here is the Web Service:

[WebMethod]
    
public string[] GetAllNames(string prefixText, int count)
    {
        ArrayList filteredList = 
new ArrayList();

        
string[] names = {"AzamSharp","Scott","Alex","Mary",
        "John","Ali","Sam","Sammy",
        "Sandy","Micheal","Andy","Pete","Steve","Bill"};

        
foreach (string name in names)
        {
            
if (name.ToLower().StartsWith(prefixText.ToLower()))
                filteredList.Add(name);
        }

        
return (string[])filteredList.ToArray(typeof(string));
    }

I tried making the same exact application using the ATLAS project and it worked but when I migrated from the old application to ATLAS it just did not work.

powered by IMHO 1.3

Posted on Thursday, April 20, 2006 10:29 PM | Back to top


Comments on this post: AutoCompleteExtender not working after migration to ATLAS project

# re: AutoCompleteExtender not working after migration to ATLAS project
Requesting Gravatar...
same problem here, no idea what is happening. Did you manage to solve it?
Left by AtlasUser on Apr 29, 2006 12:30 PM

# re: AutoCompleteExtender not working after migration to ATLAS project
Requesting Gravatar...
Hi,

Nope I am not able to solve it yet!

Left by azamsharp on Apr 29, 2006 2:37 PM

# re: AutoCompleteExtender not working after migration to ATLAS project
Requesting Gravatar...
Hi, i've same problem,how to solve it???
Left by Pit on Aug 06, 2006 7:34 AM

Your comment:
 (will show your gravatar)


Copyright © Mohammad Azam | Powered by: GeeksWithBlogs.net