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

Posted on 2006-05-30
Last Modified: 2008-01-09
I have page1.aspx with a flash object on it.  The flash performs a simple redirect to page2.aspx like below...


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


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!
Question by:williamwatkins
    LVL 11

    Expert Comment

    you can pass it as parameter:

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

    is it good enough?

    Author Comment


    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!
    LVL 11

    Accepted Solution

    then pass the url in page1.aspx via FlashVars to swf and then do getURL with this variable.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    Suggested Solutions

    Sometimes you know that one object has a specific child in it, but you can't find the child. This happened to me when I was trying to code some actionScript to make a toolbar work with its embedded buttons.  My partner had created the toolbar usi…
    The last time I worked with Flash and Socket connections was in AS1. A recent project required flash connecting to a Socket, and sending receiving information - we figured it would be easy enough - we all know about the socket policy documents and c…
    The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…
    This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    23 Experts available now in Live!

    Get 1:1 Help Now