AutoCompleteExtender

S

shapper

Hello,

I am using an AutoCompleteExtender.
I created the .asmx file with the method GetWordList:

<WebMethod()> _
Public Function GetWordList(ByVal prefixText As String, ByVal count
As Integer) As String()
Dim words As New Generic.List(Of String)

' GET words from database using TypeId as parameter ...
...
categories.Sort()
Return categories.ToArray
End Function

I don't have any problems with connecting to the database.

I just don't know how to pass the parameter TypeId to GetWordList.

As fas as I know the inputs of the AutoCompleteExtender method must
be:
ByVal prefixText As String, ByVal count As Integer

I can only change the name of the method.

Thanks,
Miguel
 
L

Lloyd Sheen

shapper said:
Hello,

I am using an AutoCompleteExtender.
I created the .asmx file with the method GetWordList:

<WebMethod()> _
Public Function GetWordList(ByVal prefixText As String, ByVal count
As Integer) As String()
Dim words As New Generic.List(Of String)

' GET words from database using TypeId as parameter ...
...
categories.Sort()
Return categories.ToArray
End Function

I don't have any problems with connecting to the database.

I just don't know how to pass the parameter TypeId to GetWordList.

As fas as I know the inputs of the AutoCompleteExtender method must
be:
ByVal prefixText As String, ByVal count As Integer

I can only change the name of the method.

Thanks,
Miguel

The autocompleteextender will take the value found in the textbox
(TargetControlID) associated with the extender and use that as the
parameter. That should be your TypeId.

Hope this helps
LS
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,994
Messages
2,570,222
Members
46,810
Latest member
Kassie0918

Latest Threads

Top