Trying to build a very simple auto-suggest textbox using AJAX Toolkit and getting an error

Hi Experts!
I am trying to use this example to build an auto suggest textbox in asp.net.


and this is the error Im getting:

AjaxControlToolkit.AutoCompleteExtender missing required ServiceMethod property value for AutoCompleteExtender1.
Parameter name: ServiceMethod


Can you please tell me what I am doing wrong based on this error, or maybe just give me an example that works?
LVL 1
vituxaAsked:
Who is Participating?
 
rajeeshmcaConnect With a Mentor Commented:
Hi , refer the Following link

http://siderite.blogspot.com/2007/08/using-ajaxcontroltoolkit.html

Regards
Rajeesh
0
 
Ajay SharmaCommented:
The declaration of autocomplete control should contain the ServiceMethod attribute.

Modify your control declaration as below:

<asp:AutoCompleteExtender  
    ID="AutoCompleteExtender1"  
    TargetControlID="txtMovie"  ServiceMethod="GetCompletionList"
    runat="server" />
0
 
Roopesh ReddyConnect With a Mentor IT AnalystCommented:
Hi,

Did you decorate the Method in the code behind with WebMethod attribute?

If not, try to declare it and try again!

The link, which you posted clearly explains on how to to do that!

You can also check this article - http://www.codeproject.com/Articles/106883/Ajax-AutoComplete-in-ASP-NET

Hope it helps u...
0
 
vituxaAuthor Commented:
Thank you all.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.