在实施搜索选项时需要帮助 [英] Need help in implementing search option

查看:96
本文介绍了在实施搜索选项时需要帮助的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

我想在我的Web应用程序(C#)中实现与网站内数据相关的搜索选项.
另外,只要用户在文本框中输入一些文本,我就希望在搜索框下提供建议.
我想知道是否有使用c#语言的内置技术或其他任何实现Search选项的方式.

Hi there,

I want to implement a search option in my web application(C#) related to data within my website.
Also I want suggestions under the search box as soon as user types some text into the textbox.
I want to know whether there are any built-in techniques for this in c# language or else any other way to implement Search option.

推荐答案

对于您的第二部分问题,您在说的是自动完成器",有很多可用的示例

例如jquery
http://www.ajaxdaddy.com/demo-jquery-autocomplete.htm [ ^ ]

该技术是当用户在文本框中键入内容时进行ajax调用,从任何来源中检索可能的完成值列表,并在ajax调用完成后显示它们.
For the 2nd part of your question, what you''re talking about is an ''auto completer'', there are lots of examples of this available

e.g jquery
http://www.ajaxdaddy.com/demo-jquery-autocomplete.htm[^]

The technique is to make an ajax call when users type into a text box, retrieve a list of possible completion values from whatever source and display them when the ajax call completes


您可以使用AJAX自动完成扩展器:

http://www.asp.net/ajax/ajaxcontroltoolkit/samples/autocomplete/autocomplete.aspx [^ ]
You could use the AJAX autocomplete extender:

http://www.asp.net/ajax/ajaxcontroltoolkit/samples/autocomplete/autocomplete.aspx[^]


这篇关于在实施搜索选项时需要帮助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆