473,499 Members | 1,672 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to get Previous Page name?

Hi,
I would like to know how can I get the page name before the current page?

Thanks
Anthony
Dec 8 '06 #1
6 7943
Maintain the state of you application in a separate object, a reference to
which is stored in the Session. Every time you leave a page, store its
identifier in the state object. Retrieve the identifier in the page load of
the page the user has navigated to.

HTH

Peter

"Anthony" <An*****@discussions.microsoft.comwrote in message
news:78**********************************@microsof t.com...
Hi,
I would like to know how can I get the page name before the current
page?

Thanks
Anthony

Dec 8 '06 #2
Try

request.servervariables("http_referer")

Regards

John Timney (MVP)
VISIT MY WEBSITE:
http://www.johntimney.com
http://www.johntimney.com/blog
"Anthony" <An*****@discussions.microsoft.comwrote in message
news:78**********************************@microsof t.com...
Hi,
I would like to know how can I get the page name before the current
page?

Thanks
Anthony

Dec 8 '06 #3
"John Timney (MVP)" <x_****@timney.eclipse.co.ukwrote in message
news:Rs*********************@eclipse.net.uk...
request.servervariables("http_referer")
*Very* unreliable...
http://www.google.co.uk/search?sourc...rer+unreliable
Dec 8 '06 #4
absolutely......lol

......but it is the only way if you want to track a client who is not coming
from a page in your application already, where you can track using cookies,
sessions or any othre state holder
--
--
Regards

John Timney (MVP)
VISIT MY WEBSITE:
http://www.johntimney.com
http://www.johntimney.com/blog
"Mark Rae" <ma**@markNOSPAMrae.comwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
"John Timney (MVP)" <x_****@timney.eclipse.co.ukwrote in message
news:Rs*********************@eclipse.net.uk...
>request.servervariables("http_referer")

*Very* unreliable...
http://www.google.co.uk/search?sourc...rer+unreliable

Dec 8 '06 #5
"John Timney (MVP)" <x_****@timney.eclipse.co.ukwrote in message
news:u_******************************@eclipse.net. uk...
.....but it is the only way if you want to track a client who is not
coming from a page in your application already, where you can track using
cookies, sessions or any othre state holder
.... but to do so would give such wildly inaccurate statistics that it's
almost not worth bothering with:
http://classicasp.aspfaq.com/general...p-referer.html

Almost as pointless as tracking IP addresses...
Dec 8 '06 #6
I do agree, and you were certainly right to point it out.

I think the best you can use it for is an indicator - taken with a pinch of
salt.

--
Regards

John Timney (MVP)
VISIT MY WEBSITE:
http://www.johntimney.com
http://www.johntimney.com/blog
"Mark Rae" <ma**@markNOSPAMrae.comwrote in message
news:ug**************@TK2MSFTNGP05.phx.gbl...
"John Timney (MVP)" <x_****@timney.eclipse.co.ukwrote in message
news:u_******************************@eclipse.net. uk...
>.....but it is the only way if you want to track a client who is not
coming from a page in your application already, where you can track using
cookies, sessions or any othre state holder

... but to do so would give such wildly inaccurate statistics that it's
almost not worth bothering with:
http://classicasp.aspfaq.com/general...p-referer.html

Almost as pointless as tracking IP addresses...

Dec 8 '06 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
5305
by: erik | last post by:
Is it posssible to inherit the previous pages (parent pages) background image? Is there a script out there I could look at? Thanks
2
10763
by: KK | last post by:
In ASP.NET is it possible to get the name of the previous page? for example, Page1.aspx Page2.aspx From page1.aspx, I do a Server.Transfer(Page2.aspx), Now within Page2.aspx can I get the...
2
1718
by: ABC | last post by:
How to I know the previous page is clicked to forward the current page? As our web site have many methods to enter the web page, I need to know the users clicked which link or which part of...
6
5809
by: bill | last post by:
Is there a way to retrieve values from the viewstate in the previouspage using cross page postback? Thanks! Bill
2
2398
by: theWizard1 | last post by:
Using Visual Studio.Net 2005, Asp.Net 2.0, and trying to use technique shown in the Programming Asp.Net 3rd Edition by O'Reily, page 257. On the first page, this would become the previous page, I...
2
2798
by: David | last post by:
I need to be able to know what my web application's previous page name was so I can know the difference between 1st time in application for a page and when I am returning to this page from another...
1
1801
by: Jeff | last post by:
I need to place a "Previous Page" link on every page within my site and a simple javascript:history.back() will not work because I need it to capture the state of the page when I left it. For...
8
1281
by: David C | last post by:
I have an ASP.Net web page that I want to be able to retrieve the name of the previous page as I am coming to this page from 3 different aspx pages via PostBackURL string. I looked at the...
3
1453
by: mcmall | last post by:
Hi I am a newbie, and I am having some troubles need someone to help me out. I am currently having a login page. heres my login form <form action="member.php?action=logindo" method="post"...
0
7131
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7220
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6894
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7388
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5470
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4600
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3099
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
665
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
297
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.