ASP.NET find out which page redirected to current page

Posted on 2009-04-02
Last Modified: 2012-05-06
Hello experts,
in my 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?
Question by:arthrex
  • 2
LVL 11

Assisted Solution

bmatumbura earned 500 total points
ID: 24047687
referrer = Request.ServerVariables("http_referrer") 

Open in new window

LVL 11

Accepted Solution

bmatumbura earned 500 total points
ID: 24047696
Dim strReferrer As String

If (Request.UrlReferrer Is Nothing) Then

  ' it's a bookmark


  strReferrer = Request.UrlReferrer.ToString

End If

Open in new window


Author Closing Comment

ID: 31565695

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have developed many web applications with asp & and to add and use a dropdownlist was always a very simple task, but with the new, setting the value is a bit tricky and its not similar to the old traditional method. So in this a…
In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now