get url of page that linked to your page

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
 
K

Karl Seguin

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!)
 
S

Steve Richter

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,012
Latest member
RoxanneDzm

Latest Threads

Top