How do they do that?

Topics: Business Logic Layer
Apr 14, 2011 at 8:40 AM

Hi,

I am new to blogengine (after struggling with WP) and am using this tool already.
It made immediate sense to me as I do not see the usefulness of having a backend database for the content of my pages. The Search Engines don't care about DB's, just relevant content on the page.

One thing amazed me when visiting the BlogEngine site.
Whenever searching, through the google toolbar, for something like "BlogEngine Themes" and from the SERP clicking on the blogengine link I see the first line: You Searched for "BlogEngine Themes"

Is there some sort of script for this? I could use it extremely well in a different context.

Hoping for an answer soon.

Apr 14, 2011 at 10:04 PM
Edited Oct 24, 2011 at 9:53 PM

Theres a Search On Search Control in BlogEngine already.

<blog:SearchOnSearch ID="SearchOnSearch1" 
  2:     runat="server" MaxResults="5" 
  3:     Headline="You searched for"
  4:     Text="Here are some results for the 
  5:     search term on this website" />

Put that in your master page.  Should be in the default theme already.

 

 

 

http://www.learnmsnet.com/?tag=/blogengine.net

http://www.dotnetperls.com/google-query

 

 

 

using System;
using System.Collections.Generic;
using System.Web;

static public class ReferrerList
{
    /// <summary>
    /// List of referrer strings.
    /// </summary>
    static public List<string> Referrers { get; set; }

    /// <summary>
    /// Add a referrer string from current request.
    /// </summary>
    static public void AddReferrer()
    {
	Uri referrer = HttpContext.Current.Request.UrlReferrer;
	if (referrer != null)
	{
	    string original = referrer.OriginalString.ToLower();
	    Referrers.Insert(0, original);
	}
    }

    static ReferrerList()
    {
	Referrers = new List<string>();
    }
}


Java Blog