What’s the Previous Page? – HTTP Referer

July 18, 2006

Dim temp As String =Request.ServerVariables(“HTTP_REFERER”)
Dim prevPage As String =Right(temp, Len(temp) -InstrRev(temp, “/”))

What’s the Previous Page? – HTTP Referer

posted in ASP.NET by Michael Sync

Follow comments via the RSS Feed | Leave a comment | Trackback URL

1 Comment to "What’s the Previous Page? – HTTP Referer"

  1. Michael Sync wrote:

    C# equivalent is:

    Request.UrlReferrer.ToString();

    Javascript equivalent is:

    escape(document.referrer);

Leave Your Comment

 
Powered by Wordpress and MySQL. Theme by Shlomi Noach, openark.org