如何通过关键字从SQL Server数据库中搜索文本字段。 [英] How to Search Text field from SQL Server database by Keywords.

查看:766
本文介绍了如何通过关键字从SQL Server数据库中搜索文本字段。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好朋友

我的名字是Sarfaraz。我正在学习ASP.Net,我有一个文章表,其中包含ArticleID,Title,Keywords,Image and Contents字段。

我想设计一个搜索页面,通过输入关键字并点击搜索按钮,它应该显示所有具有该关键字的文章只有2或3行内容,并且阅读更多链接,当点击阅读更多时,它应该显示该文章的全文,就像我们在博客中搜索一样。



另外,我想知道ASP.Net的任何视频系列教授如何从头到尾创建一个虚拟网站。



请帮助我

感谢您。

Hello friends
My name is Sarfaraz. I am learning ASP.Net and i have an article table with fields ArticleID, Title, Keywords, Image and Contents.
I wanted to design a search page where by typing keywords and click search button it should display all the articles having that keyword with only 2 or 3 lines of contents with a read more link and when clicking that read more it should display the whole text of that article just like we search in a blog.

Also, i wanted to know any video series of ASP.Net which teaches how to create a dummy website from start to finish with Master pages.

Please help me
Thanking you.

推荐答案

您的关键字是否存储在数据库中>>>?或者你想将它存储在数据库中?
Are your keywords are stored in a database>>>? or you want to store it in database?


你可以在网格视图上显示....可见的属性为假....并且点击后阅读更多链接使可见属性网格视图为true ...:)
you can display on grid view....with visible propery as false....and after clicking on read more link make the visible property of grid view to true...:)


参考



实现搜索引擎



http://msdn.microsoft.com/en-us/expression/dd571513.aspx [ ^ ]


这篇关于如何通过关键字从SQL Server数据库中搜索文本字段。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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