Click here to Skip to main content
15,902,938 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,
i am developing an website in C# ASP.NET. i want to add a search button on my website.It will display only result from my website.

Example:--> refer aspalliance.com website.i want to result like this.plz any one can help me.i will very thank full to u.
Posted
Comments
aayu 17-Sep-10 7:01am    
first you write the code then you ask us if you have problem no one is going to write code for you

For making a search implementation in your code, at first you need to implement a indexing and search framework. I can suggest you Lucene.Net for this...
go to the following link

http://lucene.apache.org/lucene.net/[^]

by using this framework, you can easily index your pages and can make your website searchable.
 
Share this answer
 
This depends on what do you want to search: files or database. IF you are searching files (HTML files, XML files, etc...) the best solution is Lucene as mentioned in the earlier post.

If you are searching a database then you want to use Full-Text Search in SQL and other similar solutions.
 
Share this answer
 

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