Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Frame

Status
Not open for further replies.

TMRO

Technical User
Jan 10, 2003
140
CA
Hi guys,

My page is formed by 2 horizontal frames.
Let's say it:

index.asp is build from top.asp and bottom.asp

I want to prevent people to access bottom.asp directly from the Address Bar. So, if they type bottom.asp it should redirect the page to index.asp and not display only bottom.asp

What's the way to accomplish that?

Thx a lot!
 
i would get the url and then do a response.redirect if the string is not "index.asp"

 
Thank you kisasama. I know there is some javascript function, that does that. Do you anthing about it?

Thx
 
sure.. um i would use the following code
on that page

Code:
pageName = Request.ServerVariables("SCRIPT_NAME")
if page <> "index.asp" then
response.redirect "index.asp"
end if
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top