what is the equivalent of document.location in asp.net?

  • Thread starter Thread starter Adrian
  • Start date Start date
A

Adrian

I have an application that I am porting to asp.net. In it I used
document.location to load the page referred to by a URL into the parent
iframe.

Does anyone know how to do the similar thing in dotnet? I can't seem to find
any document object. Maybe I'm missing something???

Thanks
Adrian
 
| Does anyone know how to do the similar thing in dotnet? I can't seem to
find
| any document object. Maybe I'm missing something???

You're missing that ASP.NET is server-side technology and document.location
is client-side thing.

You can get URL of "this" page via Request.Url property. But there is no way
how to get URL of top frame in ASP.NET, because ASP.NET simply does not know
anything about frames - and cannot know.

The best you can do is to avoid frames.
 
Back
Top