470,590 Members | 2,023 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,590 developers. It's quick & easy.

AutoCompleteExtender

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

Oct 10 '07 #1
1 2420

"shapper" <md*****@gmail.comwrote in message
news:11*********************@v3g2000hsg.googlegrou ps.com...
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

Oct 10 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Michael Appelmans | last post: by
reply views Thread by Jay | last post: by
4 posts views Thread by Peter | last post: by
2 posts views Thread by Jeff | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.