473,385 Members | 1,769 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

get page name??

Is there a way to get the name of the page that was submited to another asp
page??
Oct 29 '05 #1
3 2175
To be more precise. I have a form, when submitted calls a nother asp page
that takes the data out of the form
and dose something with the data. But i have a lot of pages with forms that
call upon the same asp page that handels
the data. I need to know from which page came the request.
I could work around this problem by adding hiddeen fields to the pages but
it would be easier if i could just get the name of the file(name of the
page).
"polilop" <fm******@inet.hr> wrote in message
news:eq**************@tk2msftngp13.phx.gbl...
Is there a way to get the name of the page that was submited to another
asp page??

Oct 30 '05 #2
found it

Request.ServerVariables("HTTP_REFERER")

"polilop" <fm******@inet.hr> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
To be more precise. I have a form, when submitted calls a nother asp page
that takes the data out of the form
and dose something with the data. But i have a lot of pages with forms
that call upon the same asp page that handels
the data. I need to know from which page came the request.
I could work around this problem by adding hiddeen fields to the pages but
it would be easier if i could just get the name of the file(name of the
page).
"polilop" <fm******@inet.hr> wrote in message
news:eq**************@tk2msftngp13.phx.gbl...
Is there a way to get the name of the page that was submited to another
asp page??


Oct 30 '05 #3
polilop wrote on 30 okt 2005 in microsoft.public.inetserver.asp.general:
found it

Request.ServerVariables("HTTP_REFERER")


The problem is, it depends on the client's browser to implement this.
Inside one domain, I would opt for a hidden field option
[or both if you are realy paranoid].

<input type='hidden' name='theReferrer'
value='<%= Request.ServerVariables("URL") %>'>
--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)

Oct 30 '05 #4

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

Similar topics

10
by: Don | last post by:
I want the server-side php script to return a browser page that is essentially a copy of the original client page that contained the <form> which referenced the php script in the first place....
1
by: Michael Brennan-White | last post by:
If I submit my for using a get action the resulting page loads . If I use a post action I get an error page saying "The page cannot be found". I am calling the originating page!!! This happens...
0
by: Rary | last post by:
I am using XSL:FO to generate PDF report for my XML, generating it in tables, i want that tables should completely be at one place, if there is a page break , all the contents of the table should...
7
by: Drew | last post by:
I have a db table like the following, UID, int auto-increment RegNo Person Relation YearsKnown Now here is some sample data from this table,
0
by: Nathan | last post by:
Hi, I seem to having a peculiar problem with the display of odd and even pages in XSL-FO. Here is a small background of the problem. My xsl stylesheet mentions my fo:layout-master-set as ...
0
by: 42 | last post by:
I implemented a simple class inherited from Page to create a page template. It simply wraps some trivial html around the inherited page, and puts the inherited page into a form. The problem I...
6
by: scottyman | last post by:
I can't make this script work properly. I've gone as far as I can with it and the rest is out of my ability. I can do some html editing but I'm lost in the Java world. The script at the bottom of...
7
by: GaryDean | last post by:
In my old 1.1 apps the default was MS_POSITIONING="GridLayout" and Textboxes and labels and such always had POSITION: absolute; and I never had any distortion when the page was rendered. Life was...
3
by: Aaron | last post by:
I'm trying to parse a table on a webpage to pull down some data I need. The page is based off of information entered into a form. when you submit the data from the form it displays a...
4
osward
by: osward | last post by:
I had made a table colum sortable and paging the table, following are the code // Display Event List echo "<center>"._EVENTLIST."</center><br>"; $now = Date(Y-m-d); // sort table...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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,...
0
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...

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.