You can't, really. I mean, you can kinda by using
Request.ServerVariables("HTTP_REFERER"), but you'd have to cover a lot of
different circumstances to avoid false positives.
This is most often done with client-side script.
http://www.webreference.com/js/column36/forcing.html
(I personally would do location.replace(url), not location.href=url.)
Ray at home
"middletree" <> wrote in message
news:%...
> For the record, I hate frames. But I am stuck with them for this project.
> Just wanted to get that out of the way so that any helpful replies I get
> won't include chastisement for using frames.
>
> OK, here's the question. How can I use a server-side script to determine
> if
> the page being loaded is doing so by itself, vs. in a frame? If it is by
> itself, I want to put in ASP code to redirect it to the frames-based page.
>
>