PC Review


Reply
Thread Tools Rate Thread

AutoCompleteExtender

 
 
shapper
Guest
Posts: n/a
 
      10th Oct 2007
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

 
Reply With Quote
 
 
 
 
Lloyd Sheen
Guest
Posts: n/a
 
      10th Oct 2007

"shapper" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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
AutoCompleteExtender question Jokke Microsoft ASP .NET 1 26th May 2010 05:51 PM
AutoCompleteExtender and ddl DavidC Microsoft ASP .NET 0 15th Feb 2010 08:50 PM
Trouble using AutoCompleteExtender Jeff Microsoft ASP .NET 2 21st Nov 2008 12:25 PM
Ajax AutoCompleteExtender Peter Microsoft ASP .NET 4 11th Nov 2008 03:09 AM
Autocompleteextender issue Frank Microsoft ASP .NET 1 7th Sep 2007 12:54 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:41 AM.