Hi,
I have developed a auto suggest using .net 3.5 version. The autosuggest box work fine in my local PC. But it does not work when I deploy to web server.
Then, I have tried to received the JSON message by textbox from the asmx in the web server and the message looks fine:
{"Header":{"Contents":"Please select your symbol."},"Items":[{"Id":"0005.HK","Title":"\u003cspan class=\"hilighted\"\u003e0\u003c/span\u003e005.HK","Description":"HSBC HOLDINGS","TitleValue":"0005.HK"},{"Id":"0941.HK","Title":"\u003cspan class=\"hilighted\"\u003e0\u003c/span\u003e941.HK","Description":"CHINA MOBILE","TitleValue":"0941.HK"},{"Id":"0386.HK","Title":"\u003cspan class=\"hilighted\"\u003e0\u003c/span\u003e386.HK","Description":"SINOPEC CORP","TitleValue":"0386.HK"},{"Id":"000001.SS","Title":"\u003cspan class=\"hilighted\"\u003e0\u003c/span\u003e00001.SS","Description":"SSE Composite Index","TitleValue":"000001.SS"},{"Id":"0939.HK","Title":"\u003cspan class=\"hilighted\"\u003e0\u003c/span\u003e939.HK","Description":"CCB","TitleValue":"0939.HK"},{"Id":"0656.HK","Title":"\u003cspan class=\"hilighted\"\u003e0\u003c/span\u003e656.HK","Description":"FOSUN INTL","TitleValue":"0656.HK"},{"Id":"010060.KS","Title":"\u003cspan class=\"hilighted\"\u003e0\u003c/span\u003e10060.KS","Description":"OCI","TitleValue":"010060.KS"},{"Id":"0390.HK","Title":"\u003cspan class=\"hilighted\"\u003e0\u003c/span\u003e390.HK","Description":"CHINA RAILWAY","TitleValue":"0390.HK"},{"Id":"000002.SS","Title":"\u003cspan class=\"hilighted\"\u003e0\u003c/span\u003e00002.SS","Description":"A-Share Index","TitleValue":"000002.SS"},{"Id":"0TV.N","Title":"\u003cspan class=\"hilighted\"\u003e0\u003c/span\u003eTV.N","Description":"Volume in 000\u0027s","TitleValue":"0TV.N"}],"Footer":{"Contents":"Yahoo Stock Quote Symbol is used."}}
However when I connect this webserver with the AutoSuggest:
<cc1:AdvancedAutoSuggestExtender TargetControlID="CityTextBox" ServiceUrl="~/Suggestions.asmx/SymbolSuggest" UpdateField="CityIdTextBox" ID="CityAASE" runat="server" />
The debug console message:
ShowSuggestions Call
textbox:[object]
textbox.value:1
doing service request:tryValue=1&additionalParams=StateIdTextBox|&additionalParams=CountyIdTextBox|
ShowSuggestions Call
textbox:[object]
textbox.value:11
doing service request:tryValue=11&additionalParams=StateIdTextBox|&additionalParams=CountyIdTextBox|
May you please help to see if any issue with the auto suggest?
I have also double checked that the webserver is running the same asp.net framework as my local PC.
Thanks very much,
Billy