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

HTTP_ REFERER is empty for popup window

Dear :

In my web page I'm always checking the referer page if it was empty I do
something else also I do something :0).

the problem in my ASPX page client side I did a popup window, and when request

Request.ServerVariables["HTTP_REFERER"] is empty for the popup window, why?
thought the parent page ins (myPage.aspx).
how can I get the parent page of the popuped window?

Regard

Nov 18 '05 #1
4 3998
From client side you can get it using window.opener and pass it to server
side. From server side if try to access it using http_referrer, it will be
empty only as it is a new page.

--
Saravana
http://dotnetjunkies.com/WebLog/saravana/
www.ExtremeExperts.com
"Raed Sawalha" <Ra*********@discussions.microsoft.com> wrote in message
news:2D**********************************@microsof t.com...
Dear :

In my web page I'm always checking the referer page if it was empty I do
something else also I do something :0).

the problem in my ASPX page client side I did a popup window, and when request
Request.ServerVariables["HTTP_REFERER"] is empty for the popup window, why? thought the parent page ins (myPage.aspx).
how can I get the parent page of the popuped window?

Regard

Nov 18 '05 #2
the problem now I have hunderds of pages that do window.open for popup
window, and I'm checking the Request.ServerVariables["HTTP_REFERER"] in
Global.ascx ->Application_BeginRequest event, so with ur soluation I have to
change all pages and this not possible for me, is there any alternate
soluation for always getting the parent window for popup ones.

Regards

"Saravana" wrote:
From client side you can get it using window.opener and pass it to server
side. From server side if try to access it using http_referrer, it will be
empty only as it is a new page.

--
Saravana
http://dotnetjunkies.com/WebLog/saravana/
www.ExtremeExperts.com
"Raed Sawalha" <Ra*********@discussions.microsoft.com> wrote in message
news:2D**********************************@microsof t.com...
Dear :

In my web page I'm always checking the referer page if it was empty I do
something else also I do something :0).

the problem in my ASPX page client side I did a popup window, and when

request

Request.ServerVariables["HTTP_REFERER"] is empty for the popup window,

why?
thought the parent page ins (myPage.aspx).
how can I get the parent page of the popuped window?

Regard


Nov 18 '05 #3
You're in trouble because HTTP_ REFERER doesn't have to be filled in and a
lot of proxy servers and I think some software firewalls strip out the HTTP_
REFERER values.
Nov 18 '05 #4
Scott Simons wrote:
You're in trouble because HTTP_ REFERER doesn't have to be filled in
and a lot of proxy servers and I think some software firewalls strip
out the HTTP_ REFERER values.


Absolutely. Referer is nice for statistical purposes (who links to my
site?), but using it for true application functionality is just disaster
waiting to strike ;-)

Cheers,

--
Joerg Jooss
www.joergjooss.de
ne**@joergjooss.de

Nov 18 '05 #5

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

Similar topics

5
by: Joshua Beall | last post by:
Hi All, I do web design for some small organizations, and one of the sites I have set up takes online conference registrations. Now, most of the time it works. In fact, every time I try it, it...
1
by: Noozer | last post by:
When using the WebBrowser control, is it possible to cause popup windows to appear within the WebBrowser control itself instead of a new window? This is what I've written in the NewWindow2 event,...
2
by: Moon | last post by:
Seems I still haven't got the hang of all those window generating code in Javascript. I've got a page with about 15 photo thumbnails. When you click on a thumbnail a new window pops up which shows...
5
by: Obantec Support | last post by:
Hi i leached some code and strung together a popup i need for a page with 5 help buttons. Now i could use 5 scripts and pre-load the values but i would rather get a better understanding of how...
1
by: colinhumber | last post by:
Some people have noticed in my application that sometimes while rapidly opening and closing a javascript window, the window will be empty. Closing and reopening the window will not repopulate the...
2
by: David Hearn | last post by:
I have a need to open a popup window from one of my forms if a particular session variable is empty. What is the best way to do this? Once the popup opens, the user will make a selection from the...
8
by: Ricky K. Rasmussen | last post by:
Hi NG, In a very large ASP.NET application i use popups for displaying diffrent kinds of dialogs. But sometimes when a Popup is opened it's like the aspx page is never executed and the popup...
1
by: Raed Sawalha | last post by:
Hello: In my aspx page I need to check the HTTP_REFERER for (images swf ) file, so when I request the server variable (HTTP_REFERER) like this Request.ServerVariables within (page.aspx) . if the...
7
by: anthony.turcotte | last post by:
Hi, I've looked for a solution to this problem on google, read posts in this newsgroup and I still haven't found anything that could help me. Here's the scenario. 1. User accesses...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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
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
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
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...

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.