Solved

ASP.NET find out which page redirected to current page

Posted on 2009-04-02
3
1,111 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
  • 2
3 Comments
 
LVL 11

Assisted Solution

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

Open in new window

0
 
LVL 11

Accepted Solution

by:
bmatumbura earned 500 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

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

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

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…
ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.

778 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