日期:2014-05-18  浏览次数:20504 次

求 类似google 输入的关键字关联出关键字词库中类似的词的例子
可运行的例子...

email:synsogelf@163.com   把名字写上,回头给分

------解决方案--------------------
只有一个winform词典的例字,要不?
------解决方案--------------------
jf
------解决方案--------------------
http://www.asp.net/ajax/control-toolkit/live/AutoComplete/AutoComplete.aspx
------解决方案--------------------
email发出去了,用一个ajax控件,和webservice实现, 记得给分啊,呵呵
------解决方案--------------------
<ajaxToolkit:AutoCompleteExtender
runat= "server "
ID= "autoComplete1 "
TargetControlID= "myTextBox "
ServiceMethod= "GetCompletionList "
ServicePath= "AutoComplete.asmx "
MinimumPrefixLength= "2 "
CompletionInterval= "1000 "
EnableCaching= "true "
CompletionSetCount= "20 "
CompletionListCssClass= "autocomplete_completionListElement "
CompletionListItemCssClass= "autocomplete_listItem "
CompletionListHighlightedItemCssClass= "autocomplete_highlightedListItem "
DelimiterCharacters= ";, : ">
<Animations>
<OnShow> ... </OnShow>
<OnHide> ... </OnHide>
</Animations>
</ajaxToolkit:AutoCompleteExtender>



[System.Web.Services.WebMethod]
[System.Web.Script.Services.ScriptMethod]
public string[] GetCompletionList(
string prefixText, int count, string contextKey) { ... }
------解决方案--------------------
这东西叫做AutoComplete(自动完成),很多Ajax框架都自带此控件,你可以试一下用ASP.NET AJAX的那个,你下载并安装ASP.NET AJAX与ASP.NET AJAX Control Toolkit就能用。Demo请看这里:
http://asp.net/AJAX/Control-Toolkit/Live/AutoComplete/AutoComplete.aspx
------解决方案--------------------
AJax技术,ASP.NET AJAX Control Toolkit能实现
------解决方案--------------------
mark
------解决方案--------------------
baidu -> AutoComplete
------解决方案--------------------
mark