Solved

ASP.NET find out which page redirected to current page

Posted on 2009-04-02
3
1,134 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 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

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…
A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

630 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