How can I get my Autocomplete extender to work?

前端 未结 6 1759
醉酒成梦
醉酒成梦 2021-01-21 10:49

I\'ve tried to the letter to search for mistakes in my code, but i can\'t myself get that autocomplete extender to work. Help wanted.

Here\'s my code: (excerpt from my

6条回答
  •  忘掉有多难
    2021-01-21 11:19

    I think your problem is that the GetCompletionList method is declared static.

    If you run up just the .asmx code in a debugger session (or browse to the .asmx file if you have deployed your code to a webserver) you should see a list of available operations for the web-service. When I change the code in the Ajax control toolkit examples to declare this method as static the operation is no longer in the list and the autocomplete extender also stops working.

    Change your method signature to:

    public string[] GetCompletionList(string prefixText, int count) 
    

提交回复
热议问题