ASP.NET find out which page redirected to current page

Hello experts,
in my asp.net app I redirect from some pages to others. How do I find out from which page my current page was called?
I though it should be the sender of the page_load method. But there I always get the current page as the sender.

Can someone help me?
arthrexAsked:
Who is Participating?
 
bmatumburaConnect With a Mentor Commented:
Also:
Dim strReferrer As String
If (Request.UrlReferrer Is Nothing) Then
  ' it's a bookmark
Else
  strReferrer = Request.UrlReferrer.ToString
End If

Open in new window

0
 
bmatumburaConnect With a Mentor Commented:
Try:
referrer = Request.ServerVariables("http_referrer") 

Open in new window

0
 
arthrexAuthor Commented:
perfect
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.