?
Solved

ASP.NET find out which page redirected to current page

Posted on 2009-04-02
3
Medium Priority
?
1,137 Views
Last Modified: 2012-05-06
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?
0
Comment
Question by:arthrex
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 11

Assisted Solution

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

Open in new window

0
 
LVL 11

Accepted Solution

by:
bmatumbura earned 2000 total points
ID: 24047696
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
 

Author Closing Comment

by:arthrex
ID: 31565695
perfect
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

719 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