Auto Complete issue

Last post 12-09-2006 2:52 PM by Luis Abreu. 8 replies.

Sort Posts:

  • Auto Complete issue

    12-04-2006, 11:45 AM
    • Loading...
    • Pexim
    • Joined on 09-21-2006, 3:05 PM
    • Posts 15

    Hi everybody

    I'm working with ajax and i have been updating to beta2 , but i'm facing some troubles, for example, with the AutoComplete Extender, to import autocomplete i had to toolbox the dll Microsoft.Web.Preview.dll, then a access the AutoCompleteExtender, this have a diference to beta1 ajax, it does not have the property DropDownControlD, so my code is this

    <cc1:AutoCompleteExtender ID="AutoCompleteExtenderClients" runat="server" MinimumPrefixLength=1 ServicePath="~/WebServiceLudimax.asmx" TargetControlID=TextBoxSearch ServiceMethod="GetClientesSearch" >

     

    </cc1:AutoCompleteExtender>

    before updated to beta2 i had no problems with it, but after i updated to beta 2 on page load it sends me the error:

    Sys.ArgumentTypeException: Object of type 'Object' cannot be converted to type 'Sys.UI.DomElement'. Parameter name: element

    Can anyone help me, please...

    Best Regards Pexim 

  • Re: Auto Complete issue

    12-07-2006, 8:04 AM
    • Loading...
    • Manotas
    • Joined on 06-20-2006, 1:36 PM
    • Posts 121

    I'm not sure if this would solve your problem, but at least it would be an error of less....

    For the TargetControlID, the double quotation marks ( ") at each side of TextBoxSearch

     

     

  • Re: Auto Complete issue

    12-07-2006, 12:30 PM
    • Loading...
    • joswalt
    • Joined on 10-23-2002, 10:31 AM
    • Posts 91

    I am getting this error as well when I try to use the AutoComplete. Hopefully, someone will know why this error is popping up now.

     

  • Re: Auto Complete issue

    12-07-2006, 4:03 PM
    • Loading...
    • limno
    • Joined on 06-10-2005, 7:50 PM
    • Iowa, USA
    • Posts 3,290
    • Moderator
      TrustedFriends-MVPs

    Check your Web Service: I got mine working this morning but not with this error.

     

    using

    System;

    using

    System.Web;

    using

    System.Collections.Generic;

    using

    System.Web.Services;

    using

    System.Web.Services.Protocols;

    using

    Microsoft.Web.Script.Services;

    [

    WebService(Namespace = "namespaceUri")]

    [

    WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]

    [

    ScriptService]

    public

    class Categories : System.Web.Services.WebService {

    ...

    }

    Limno

  • Re: Auto Complete issue

    12-07-2006, 4:09 PM
    • Loading...
    • joswalt
    • Joined on 10-23-2002, 10:31 AM
    • Posts 91

    I have tried creating a new test project to see if I could get it to work and still no luck. Here is my Service:

        1 using System;

        2 using System.Web;

        3 using System.Collections;

        4 using System.Collections.Generic;

        5 using System.Web.Services;

        6 using System.Web.Services.Protocols;

        7 

        8 /// <summary>

        9 /// Summary description for Test

       10 /// </summary>

       11 [WebService(Namespace = "http://tempuri.org/")]

       12 [Microsoft.Web.Script.Services.ScriptService()]

       13 public class Test : System.Web.Services.WebService

       14 {

       15 

       16     public Test () {

       17 

       18         //Uncomment the following line if using designed components

       19         //InitializeComponent();

       20     }

       21 

       22     [WebMethod]

       23     public string[] GetSearchNames(string prefixText, int count)

       24     {

       25         List<string> suggestions = new List<string>();

       26 

       27         suggestions.Add("John Test");

       28         suggestions.Add("John User");

       29         suggestions.Add("John Apple");

       30         suggestions.Add("Matt Test");

       31         suggestions.Add("Lorie Test");

       32         suggestions.Add("Justin Red");

       33 

       34         return suggestions.ToArray();

       35     }

       36 

       37 }

       38 

  • Re: Auto Complete issue

    12-07-2006, 4:11 PM
    • Loading...
    • joswalt
    • Joined on 10-23-2002, 10:31 AM
    • Posts 91

    Here is Web Page html:

        1 <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

        2 

        3 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

        4 <html xmlns="http://www.w3.org/1999/xhtml">

        5 <head runat="server">

        6     <title>Untitled Page</title>

        7 </head>

        8 <body>

        9     <form id="form1" runat="server">

       10         <ajax:ScriptManager ID="ScriptManager1" runat="server">

       11         </ajax:ScriptManager>

       12         <div>

       13             <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>

       14             <ajax:AutoCompleteExtender ID="AutoCompleteExtender1" MinimumPrefixLength="1" TargetControlID="TextBox1" ServicePath="Test.asmx" ServiceMethod="GetSearchNames" runat="server" />

       15         </div>

       16     </form>

       17 </body>

       18 </html>

     

  • Re: Auto Complete issue

    12-07-2006, 4:46 PM
    • Loading...
    • limno
    • Joined on 06-10-2005, 7:50 PM
    • Iowa, USA
    • Posts 3,290
    • Moderator
      TrustedFriends-MVPs

    Hello John:

    Which version are you using? beta 2 or 1?

    Good news: I put your stuff in my test project and it works with beta 2. If you are interested, I can show you the code part.

    Limno

  • Re: Auto Complete issue

    12-09-2006, 10:17 AM
    • Loading...
    • joswalt
    • Joined on 10-23-2002, 10:31 AM
    • Posts 91
    I am using Beta 2. I was able to get mine working by completely uninstalling all of the ASP.Net AJAX stuff. I then reinstalled and tried my code. It the worked. It seems the install can still be somewhat unstable. Hopefully, when it RTMs things will be a little more stable.
  • Re: Auto Complete issue

    12-09-2006, 2:52 PM
    • Loading...
    • Luis Abreu
    • Joined on 02-12-2005, 6:22 AM
    • Madeira [Portugal]
    • Posts 5,218
    hello.

    well, the problem might be that you still had an older version of the value-added bits that was being used instead of the november release. if i recall correctly the extender is included on the value-added bits, so the problem must be in the version of that library that you're using.
    --
    Regards,
    Luis Abreu
    email: labreu_at_gmail.com
    PT blog: http://weblogs.pontonetpt.com/luisabreu
    EN blog:http://msmvps.com/blogs/luisabreu
    http://www.pontonetpt.com
    http://weblogs.pontonetpt.com/
Page 1 of 1 (9 items)
Microsoft Communities
Page view counter