Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > AutoComplete - Ajax Control Toolkit

Thread Tools

AutoComplete - Ajax Control Toolkit

Posts: n/a

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.



Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
AJAX Control Toolkit / ASP.Net Validator control problem Stratum ASP .Net 1 10-13-2008 05:01 AM
Ajax Toolkit Autocomplete Lloyd Sheen ASP .Net 2 09-19-2007 08:55 PM
Additional functionality in AJAX AutoComplete Extender control jonefer ASP .Net Web Controls 0 06-14-2007 12:59 AM
"ASP.NET AJAX-Enabled Web Site" or "AJAX Control Toolkit Web Site"? mark4asp ASP .Net 1 03-24-2007 06:06 AM
Enable autocomplete although site set autocomplete to off Frank Dohrmann Firefox 1 03-31-2006 11:28 PM