AutoComplete extender

Last post 12-05-2006 8:58 PM by yaip. 2 replies.

Sort Posts:

  • AutoComplete extender

    11-30-2006, 3:24 PM
    • Contributor
      4,773 point Contributor
    • yaip
    • Member since 10-27-2003, 10:29 AM
    • Los Angeles, CA
    • Posts 1,145

    I have the following ASPX:

             <asp:TextBox ID="tbTextBox" runat="server"></asp:TextBox>
            <cc1:AutoCompleteExtender ID="AutoCompleteExtender1" runat="server" 
                                      TargetControlID="tbTextBox"
                                      ServiceMethod="GetStudentNames"
                                      ServicePath="Student_WS.asmx"
                                      MinimumPrefixLength="1"/>

    and my vb code is:

     
    Imports System.Web
    Imports System.Web.Services
    Imports System.Web.Services.Protocols
    Imports System.Data

    <WebService(Namespace:="http://tempuri.org/")> _
    <WebServiceBinding(ConformsTo:=WsiProfiles.BasicProfile1_1)> _
    <Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
    Public Class Student_WS
         Inherits System.Web.Services.WebService

        <WebMethod()> _
        Public Function GetStudentNames(ByVal prefixText As String, ByVal count As Integer) As String()
            Dim Students() As String
            Dim aList As New ArrayList
            Dim taStudents As New StudentTableAdapters.tblStudentTableAdapter
            Dim dtStudents As DataTable = taStudents.Get_Student
            For Each row As DataRow In dtStudents.Rows
                aList.Add(row("nvcStudentFirstName").ToString)
            Next
            Students = DirectCast(aList.ToArray(GetType(String)), String())
            Return Students
        End Function
    End Class

    This doesn't work. What am I doing wrong?
     

    Thanks
    I love computers because: MY WISH IS THEIR COMMAND :)

    <Website>
    <Gadget>
  • Re: AutoComplete extender

    12-05-2006, 8:22 PM
    • Star
      8,710 point Star
    • David Anson
    • Member since 04-11-2006, 1:39 AM
    • Microsoft
    • Posts 1,842
    • AspNetTeam
    While we work closely with the ASP.NET AJAX team when developing the Toolkit, they're the real experts on general ASP.NET AJAX issues. Your problem doesn't seem to be directly related to the Toolkit, so we'd appreciate if you considered posting to one of the other newsgroups such as AJAX Discussion and Suggestions. Your post will be more helpful to others looking for similar advice if it's in the right place. Thank you!

    http://blogs.msdn.com/delay

    This posting is provided "AS IS" with no warranties, and confers no rights.
  • Re: AutoComplete extender

    12-05-2006, 8:58 PM
    • Contributor
      4,773 point Contributor
    • yaip
    • Member since 10-27-2003, 10:29 AM
    • Los Angeles, CA
    • Posts 1,145
    I will. Thx.
    Thanks
    I love computers because: MY WISH IS THEIR COMMAND :)

    <Website>
    <Gadget>
Page 1 of 1 (3 items)