473,624 Members | 2,264 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 7949
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*****@discus sions.microsoft .comwrote in message
news:78******** *************** ***********@mic rosoft.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.serverv ariables("http_ referer")

Regards

John Timney (MVP)
VISIT MY WEBSITE:
http://www.johntimney.com
http://www.johntimney.com/blog
"Anthony" <An*****@discus sions.microsoft .comwrote in message
news:78******** *************** ***********@mic rosoft.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.ukwr ote in message
news:Rs******** *************@e clipse.net.uk.. .
request.serverv ariables("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**@markNOSPA Mrae.comwrote in message
news:%2******** ********@TK2MSF TNGP04.phx.gbl. ..
"John Timney (MVP)" <x_****@timney. eclipse.co.ukwr ote in message
news:Rs******** *************@e clipse.net.uk.. .
>request.server variables("http _referer")

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

Dec 8 '06 #5
"John Timney (MVP)" <x_****@timney. eclipse.co.ukwr ote 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**@markNOSPA Mrae.comwrote in message
news:ug******** ******@TK2MSFTN GP05.phx.gbl...
"John Timney (MVP)" <x_****@timney. eclipse.co.ukwr ote 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
5335
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
10787
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 name of Page1.aspx (the previous page who called page2.aspx) ?
2
1729
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 page to enter the web page.
6
5820
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
2410
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 have 2 dropdowns. According to their technique, I should create a public property on my previous page for these 2 dropdowns, and then I would would be able to get their settings on the target aspx page. I have added the 2 properties on the...
2
2801
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 page in the application. I looked at the PreviousPage property but I can't get a name. if there is a better way to do this please let me know. Thanks. David
1
1817
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 example, if I have a page with some date controls so I can choose a date range and postback the page. It then displays results based on that date range. When I leave the page for another page, I would like to have the Previous Page link take them...
8
1289
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 PreviousPage but it has no "Name" property that I could find. Can anyone help? Thanks. David
3
1467
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" id="form_login" name="form_login" > <input type="text" name="txtloginname" id="txtloginname" tabindex="1"/> <input type="text" name="txtloginpwd" id="txtloginpwd" tabindex="1"/> <input name="save" id="save" value="submit"> </form> How do I write a...
0
8233
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8675
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8334
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8474
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6108
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5561
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4078
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2604
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1482
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.