AutoComplete - Ajax Control Toolkit

S

shapper

Hello,

I am using a AutoComplete and I am having a few problems in creating
the ServiceMethod.

I have the following method:

' ...
<WebMethod()> _
Public Function GetCategories(ByVal prefixText As String, ByVal
count As Integer) As String()
Dim categories As New Generic.List(Of String)
categories = GetAllCategories()
For i As Integer = 0 To count - 1
?????
Next i
Return ???
End Function

The code line

categories = GetAllCategories()

returns a list of strings, i.e.: London, New York, Car, Boat, ...

My problem is what should I do know with the prefixText and the count
value to create my String array to be returned by the method.

Thanks,

Miguel
 

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,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top