Link to home
Start Free TrialLog in
Avatar of vituxa
vituxa

asked on

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?
Avatar of Ajay Sharma
Ajay Sharma
Flag of India image

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" />
ASKER CERTIFIED SOLUTION
Avatar of rajeeshmca
rajeeshmca
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of vituxa
vituxa

ASKER

Thank you all.