0
我在.net中創建了一個基於給定輸入文本的城市名稱。 Web服務正常運行。我在ajax控件工具包的AutoCompleteExtender控件中使用了該Web服務。但是,如果我在文本框中輸入任何內容,我都不會收到建議列表。ajax控件工具包中的AutoCompleteExtender控件
Web服務結構是:
公共字符串GetCompletionList(字符串prefixText)
<body>
<form id="form1" runat="server">
<div>
<!--.........................................
.........................................
.........................................-->
<asp:TextBox ID="txtsearchcity" runat="server" class="autosuggest"></asp:TextBox>
<asp:AutoCompleteExtender runat="server"
ID="autoComplete1"
TargetControlID="txtsearchcity"
ServicePath="http://localhost:3935/SearchCity/searchcity.asmx"
ServiceMethod="GetCompletionList"
MinimumPrefixLength="2"
CompletionInterval="1000"
EnableCaching="true"
CompletionSetCount="20">
</asp:AutoCompleteExtender>
<!--.........................................
.........................................
.........................................-->
</div>
</form>
</body>
應該是什麼確切ServicePath和ServiceMethod? 是否需要獲取輸出的CSS文件?