asp.net网页中的搜索工具 [英] search facility in asp.net webpage
本文介绍了asp.net网页中的搜索工具的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何实施搜索工具,搜索数据库(特定表格中的所有字段)和各种网页,网络或Google搜索引擎的互联网搜索结果?我试过这个。
用户将在搜索文本框中输入一个单词
我会在特定的字段中搜索它使用'like'的特定表格
解决方案
如果您的网站是实时的,您可以使用谷歌搜索框来执行此操作。如果没有,你需要编写代码。
我同意 Christian Graus [ ^ ]如果你只想在你的数据库上手动操作那么....
让你的SQL查询更容易。
从句子中获取必要的代币。
Ex。
什么是C#中的会话?令牌:Session,C#。
什么是WCF webService以及如何实现它?令牌:WCF,WebService,工具。
(我的项目完成后我已经完成了这个)
然后用like点火查询SQL。
How to implement a search facility that will search results from database (all fields in a particular table) and various web pages and in a network or through internet search from Google search engine? I have tried this.
The user will enter a word in the search text box
I will search for it in a particular field of a particular table using 'like'
解决方案
If your web site is live, you can utilise a google search box to do this. If not, you need to write code.
I agree with Christian Graus[^] and still if you want to do it manually only on your database then....
Let make your sql query easier.
Get Necessary Tokens from sentence.
Ex.
"What is session in C#??" tokens : Session,C#.
"What is WCF webService & how to implement it?" tokens : WCF,WebService,implement.
(I have done this once my project)
And then fire query with "like" in sql.
这篇关于asp.net网页中的搜索工具的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文