Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

AutoCompleteExtender

0 views
Skip to first unread message

shapper

unread,
Oct 9, 2007, 9:21:42 PM10/9/07
to
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

Lloyd Sheen

unread,
Oct 10, 2007, 2:50:11 PM10/10/07
to

"shapper" <mdm...@gmail.com> wrote in message
news:1191979302....@v3g2000hsg.googlegroups.com...

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

0 new messages