Click here to Skip to main content
15,911,646 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
Hi,
How to use search in own website.
Suppose I have a textbox in my web page and whatever text written over there.It search that from my website pages and give list of links that matches that pattern of word.I want this whole in mywebsite where I am using asp.net with sql server database. e.g In the codeproject website the right side corner search site textbox given and a button beside that.I want same .
Please help me for that.
Thanks in advance.
Posted

Hi there,

Try searching "database search" and "full-text search" in Google - you will soon understand the scale of the problem you are trying to tackle and that unless you started with your site set-up to be searched, what you are trying to do it is very hard. If I'm right, CodeProject uses tags and keywords to minimise the actual amount of "searching" it has to do for articles and then refines that based on article titles/descriptions etc. It is a limited search.

I would suggest the easiest way to do searching on your site is to look at putting a Google Search box on your site. Google will allow you to embed a Google search box that specifically searches your site meaning you don't have to worry about searching, provided that is that your website is search engine friendly.

Hope this helps,
Ed
 
Share this answer
 
Comments
singh7pankaj 17-Feb-12 7:29am    
If I'll use Google search in my web page and search any text from within my website then google search it as a whole or its search links within my website?
Ed Nutting 17-Feb-12 7:31am    
Google will use it's search engine to search your site - i.e. searching in your site's embedded search box is the same as searching through the main Google home page except that the box embedded in your page will only return results for your website.
singh7pankaj 17-Feb-12 7:44am    
Ok Thank You Very Much
singh7pankaj 17-Feb-12 7:47am    
And Where it Shows the result.Will it shows results in its own page or target it to my website.If target it to my web page then how to use it.
Ed Nutting 17-Feb-12 7:49am    
Go to the Google website and find out - I don't know off the top of my head.
Take a look at the Full-Text search for SQL Server, this may is a pretty powerfull solution for you.
Full-Text search[^]
 
Share this answer
 
Comments
singh7pankaj 17-Feb-12 7:21am    
If I'll get the words then how can I get the links of web pages.Because I'll have to show all the links in web page

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900