What’s the Previous Page? - HTTP Referer


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

1 Comment so far »

  1. Michael Sync said

    am July 11 2007 @ 8:19 am

    C# equivalent is:

    Request.UrlReferrer.ToString();

    Javascript equivalent is:

    escape(document.referrer);

Comment RSS · TrackBack URI

Leave a comment

Name: (Required)

eMail: (Required)

Website:

Comment: