ASP.NET Get url of seperate frame?

  • Thread starter Thread starter Gav
  • Start date Start date
G

Gav

Hi all,

I am currently changing a project so that it uses framesets/frames etc and
in my code I use:

Url urlPage= HttpContext.Current.Request.Url;
urlPage.AbsolutePath;

in order to find which page I'm looking at, however now I have changed this
I would like to find out which page is loaded in a different frame. Can
anybody help with this?

Thanks
Gav
 
Gav,

You aren't going to be able to get this unless you store that state on
the server (by session), or send it as part of the url (from the other
frames).

If anything, what are you trying to do? You might be able to use
javascript to figure out what frames are loaded where, and then adjust the
URL (with a querystring) to pass that to the server to process, if need be.

Hope this helps.
 
Back
Top