• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 974
  • Last Modified:

Request ServerVariables from ASP.Net (VB) after a Flash redirect

I have page1.aspx with a flash object on it.  The flash performs a simple redirect to page2.aspx like below...

getURL("page2.aspx");

Now from page2.aspx I want to get the url where the user came from like so...

Request.ServerVariables("HTTP_REFERER")

However, when the redirect is made from the flash object Request.ServerVariables("HTTP_REFERER") on page2.aspx returns nothing.  The ASP.Net code is correct as I have used this numerous times in the past and when I use a simple HTML link to page2.aspx I am able to get the url.

Any ideas???  If not, does anyone know how to do something similar to Request.ServerVariables("HTTP_REFERER") with actionscript in flash?

Thanks in advance!
0
williamwatkins
Asked:
williamwatkins
  • 2
1 Solution
 
BuffonCommented:
you can pass it as parameter:

getURL("page2.aspx?url=" + _root._url);


is it good enough?
0
 
williamwatkinsAuthor Commented:
Buffon...

That does work, however, I didn't give enough information on the problem.

page1.aspx is hosted on Server1
the flash object is hosted on Server2 (flash.swf)
Flash.swf is simply EMBED on page1.aspx

The problem is when I use getURL("page2.aspx?url=" + _root._url); I get the url of where the flash object is stored on server2 instead of the url of page1.aspx on Server1 which is what I'm looking for.

Hopefully this makes sense?

Thanks for the help!
0
 
BuffonCommented:
then pass the url in page1.aspx via FlashVars to swf and then do getURL with this variable.

http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00001206.html
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now