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>