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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Frames With Response.Redirect

Status
Not open for further replies.

arpan

Programmer
Oct 16, 2002
336
IN
I have a web page which has 3 frames-top, middle & bottom. The top & the bottom frames always remain static; whatever interaction has to be done with the user is being done in the middle frame. The middle frame shows a "Logout" link. When the "Logout" link is clicked, the user is taken to SignOut.asp which does something. Please note that all these things are happening in the middle frame. What I want is when SignOut.asp finishes its work, the user should be redirected to another page but this page should not have frames. For e.g. if the user is redirected to the entire browser window should display index.html i.e. index.html should not be in the middle frame along with the static top & bottom frames; rather index.html should cover the entire browser window. If I simply issue a command saying
Code:
Response.Redirect("www.mysite.com/index.html")
, then index.html opens up in the middle frame which is what I don't want; index.html should be displayed in the entire browser window without frames. How do I do this? Can Response.Redirect be modified in someway so that index.html opens up in the entire browser window?

Thanks,

Arpan
 
You won't be able to do this server side. in signout.asp, put in a javascript, that gets called in hte baody tag like this onload="signoutpage()" that does the redirection and use window.top.location.href = 'you url here'

This will load the page you want displayed without any frames.
 
its simple. in ur logout link:
<a href=&quot;Logout Page&quot; target=&quot;_top&quot;>Logout</a>

Known is handfull, Unknown is worldfull
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top