Capture search terms from search page

Posted on 2008-11-17
Medium Priority
Last Modified: 2013-11-07
I'm wondering if anybody knows if you can capture search terms from a search page and save the search terms somewhere like a log file. I'm not talking about users coming from google, rather the users that are already on your site and use you search function. How can I capture those keywords? Any tutorials online? Thanks
Question by:flukester
LVL 11

Assisted Solution

fanopoe earned 450 total points
ID: 22979866
do you have a database behind your site? Pass them into there.

Author Comment

ID: 22979944
Are you saying every time someone hits the search button, insert a row into a table with the search term?

Accepted Solution

tiagosalgado earned 1050 total points
ID: 22980168
Thats obvious.
If you want to store all keywords into multiple rows you need to use Split() function.

Dim keys As String = "my keywords to insert"
Dim keywords() As String = keys.Split(" ")
For Each k As String In keywords
    ' insert in DB your k.ToString()

Featured Post

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Loops Section Overview
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…
Suggested Courses

862 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question