473,408 Members | 1,826 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,408 software developers and data experts.

HOWTO: Get Querystring Passed To Referring Page

How can I get the Querystring passed to the Referring Page from its
referrer?

I don't want the querystring coming to my current page. I want the
querystring that came to the referring page, so that I can check for the
existance of a parameter value in that previous querystring.

Nov 19 '05 #1
3 3112
If the Querystring came from your referer page, just do the
Request.Querystring["your_var"]
What is the difficulty ? Sorry, could you explain again your doubt ?

All Querystring come from referring pages, just if you in your current page
do a Redirect with ?param=john to its own! understand ?

--
Please, check my theSpoke:
http://www.thespoke.net/MyBlog/dgroh/MyBlog.aspx

"Dan Sikorsky" <Da**********@fullspectrum.net> escreveu na mensagem
news:OQ****************@TK2MSFTNGP10.phx.gbl...
How can I get the Querystring passed to the Referring Page from its
referrer?

I don't want the querystring coming to my current page. I want the
querystring that came to the referring page, so that I can check for the
existance of a parameter value in that previous querystring.

Nov 19 '05 #2
Please review what my posting is requesting: I don't want the Querystring
coming to my page; I want the Querystring that came to the referring page.
The referring page's referrer sent a Querystring; that's the one I need.

Origingal request:
"I don't want the querystring coming to my current page. I want the
querystring that came to the referring page, so that I can check for
the
existance of a parameter value in that previous querystring."

"Paperback Writer" <ne*********@gmail.com> wrote in message
news:uT**************@TK2MSFTNGP15.phx.gbl...
If the Querystring came from your referer page, just do the
Request.Querystring["your_var"]
What is the difficulty ? Sorry, could you explain again your doubt ?

All Querystring come from referring pages, just if you in your current page do a Redirect with ?param=john to its own! understand ?

--
Please, check my theSpoke:
http://www.thespoke.net/MyBlog/dgroh/MyBlog.aspx

"Dan Sikorsky" <Da**********@fullspectrum.net> escreveu na mensagem
news:OQ****************@TK2MSFTNGP10.phx.gbl...
How can I get the Querystring passed to the Referring Page from its
referrer?

I don't want the querystring coming to my current page. I want the
querystring that came to the referring page, so that I can check for the
existance of a parameter value in that previous querystring.


Nov 19 '05 #3
We can't get that value unless the 3rd party page page that refers to the
page that refers to your page has code that you control so you can capture
the value and pass it through to wherever you want Dan -or- if the owner of
the 3rd party page agrees to capture the value and pass it on to others. You
should also be advised that there's more than a half dozen reasons the
HTTP_REFERER server variable will never be populated with any data.

The HTTP_REFERER server variable can only be populated by a click event.

<%= Clinton Gallagher
METROmilwaukee (sm) "A Regional Information Service"
NET csgallagher AT metromilwaukee.com
URL http://metromilwaukee.com/
URL http://clintongallagher.metromilwaukee.com/


"Dan Sikorsky" <Da**********@fullspectrum.net> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Please review what my posting is requesting: I don't want the Querystring
coming to my page; I want the Querystring that came to the referring page.
The referring page's referrer sent a Querystring; that's the one I need.

Origingal request:
"I don't want the querystring coming to my current page. I want the
querystring that came to the referring page, so that I can check for
the
existance of a parameter value in that previous querystring."

"Paperback Writer" <ne*********@gmail.com> wrote in message
news:uT**************@TK2MSFTNGP15.phx.gbl...
If the Querystring came from your referer page, just do the
Request.Querystring["your_var"]
What is the difficulty ? Sorry, could you explain again your doubt ?

All Querystring come from referring pages, just if you in your current

page
do a Redirect with ?param=john to its own! understand ?

--
Please, check my theSpoke:
http://www.thespoke.net/MyBlog/dgroh/MyBlog.aspx

"Dan Sikorsky" <Da**********@fullspectrum.net> escreveu na mensagem
news:OQ****************@TK2MSFTNGP10.phx.gbl...
> How can I get the Querystring passed to the Referring Page from its
> referrer?
>
> I don't want the querystring coming to my current page. I want the
> querystring that came to the referring page, so that I can check for
> the
> existance of a parameter value in that previous querystring.
>
>
>



Nov 19 '05 #4

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

Similar topics

1
by: Deepiceman | last post by:
Hi all, I am new to asp so bear with me. I want to write a page which will load a default page for me with some links and all. lets say someone clicks on the link, which not only points to the...
4
by: Deepster | last post by:
Hi Guys Here is what I am doing ... Have a page default.asp which looks at the url and checks for querystring's. if there are none passed goes to a function. if there are particular querystrings...
1
by: lion | last post by:
my Problem: a query string passed into a html page doesn't display correctly on a mac I am just using html and javascript (no ASP, PHP or server side scripting) This is the query string:...
5
by: Arpan | last post by:
An ASP application retrieves records from a SQL Server database. In the first page of the application, the user has to enter a password & the columns retrieved from the DB table depends upon the...
6
by: Joe | last post by:
Hello All: I have a webform (WebForm1.aspx) that retrieves a value from a database (_formSessionId) the first time that it is posted. After the user filles in the form, he/she clicks a Button...
4
by: EDOnLine | last post by:
We have a page which, after inserting a record ID to our database via stored proceedure, redirects the user to a URL on a thrid party site which as passed to that page via QueryString. In other...
7
by: =?Utf-8?B?QVRT?= | last post by:
HOWTO Make CStr for JavaScript on ASP w/ Request.Form and QueryString In ASP, Request.Form and Request.QueryString return objects that do not support "toString", or any JavaScript string...
4
by: =?Utf-8?B?RVcgTmV3Ymll?= | last post by:
My apologies in advance if there is a better forum for this question. Given the following snippet: <script type="text/c#" runat="server"> protected void Page_Load(Object Sender, EventArgs e)...
2
by: Arch Stanton | last post by:
I have an aspx page with a text box. My user enters text to search for and presses a button; the text is passed via a QueryString to another aspx page and used in a SQL search. The wildcard...
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?
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...
0
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
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...

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.