[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 646
  • Last Modified:

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?
0
vituxa
Asked:
vituxa
2 Solutions
 
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
 
rajeeshmcaCommented:
Hi , refer the Following link

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

Regards
Rajeesh
0
 
Roopesh ReddyCommented:
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

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now