get url of page that linked to your page

  • Thread starter Thread starter Steve Richter
  • Start date Start date
S

Steve Richter

How does my asp.net code retrieve the path of the page that linked to
the current page? The equivalent of the "Back" menu option in IE?

thanks,

-Steve
 
If Not Request.UrlReferrer Is Nothing Then
originator = Request.UrlReferrer.ToString()
Else
originator = "unknown"
End If

you really do have to check fi it's nothing, 'cuz it often can be (norton
for example strips it...)

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/ - New and Improved (yes, the popup is
annoying)
http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to
come!)
 
Karl said:
If Not Request.UrlReferrer Is Nothing Then
originator = Request.UrlReferrer.ToString()
Else
originator = "unknown"
End If

you really do have to check fi it's nothing, 'cuz it often can be (norton
for example strips it...)

Karl

thanks!

-Steve
 
Back
Top