954,593 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Search within the webite

Hi..

I am working on an project(asp.net C#) where i need to implement search within the website where i would like too retrieve the search results based on their links..

Can anyone help me??

bhagyap
Light Poster
38 posts since Nov 2011
Reputation Points: 10
Solved Threads: 0
 

If you have html pages, you can index them using windows indexing service. Please see the following link:

http://support.microsoft.com/kb/820105

sufyan2011
Junior Poster
166 posts since Dec 2011
Reputation Points: 9
Solved Threads: 20
 

i needed it in c# and is there any other way than this..

bhagyap
Light Poster
38 posts since Nov 2011
Reputation Points: 10
Solved Threads: 0
 

Can you tell us what kind of pages do you have, CMS, static HTML pages??

sufyan2011
Junior Poster
166 posts since Dec 2011
Reputation Points: 9
Solved Threads: 20
 

Its an CMS,dynamic pages..

bhagyap
Light Poster
38 posts since Nov 2011
Reputation Points: 10
Solved Threads: 0
 

For dynamic content, pages might be stored in database, so that is not a big task, what you can do is to enable the full text search in database for more flexibale search operation, please read the following article about full text search:

http://msdn.microsoft.com/en-us/library/ms142571.aspx

You can write stored procedure that search within your column in your database where page's content are stored. In application level, you can have search page where you can put any control e.g. Repeater or List to bind the search result. There are many tutorial available on net and you can google it easily.

Since this is basic coding task, I can only give you idea and don't want to give the exact code.

sufyan2011
Junior Poster
166 posts since Dec 2011
Reputation Points: 9
Solved Threads: 20
 

Hey dude !

If you done SEO for your site save that meta data to your own table in database when user search keyword in search control you search that meta data (use %like% in query)and take the corresponding page name show those result in hyperlink which link user need user can click it.

Note: If you don`t have database connection then place all metadata and corresponding page link when search load xml to data table and use LINQ to search keyword show result as mentioned above

mani-hellboy
Junior Poster in Training
69 posts since Feb 2012
Reputation Points: 0
Solved Threads: 7
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: