 |
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0 |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
|
|
|

May 27th, 2004, 05:50 PM
|
Registered User
|
|
Join Date: May 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Using Response.redirect with frames
I have a major problem. When my users login from default.asp (also a frames page) they are redirected to a frames page for registered users. The problem that I'm having is that I can't get the registered users frame to open outside of main target frame of default.asp. Does anyone know how to redirect so that the new frame target is at the top of the page.
|

May 27th, 2004, 05:54 PM
|
Friend of Wrox
|
|
Join Date: Nov 2003
Posts: 1,285
Thanks: 0
Thanked 2 Times in 2 Posts
|
|
I don't believe you can do this in ASP. You will probably need write some JavaScript from your ASP.
HTH,
Snib
<><
|

May 27th, 2004, 06:04 PM
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
|
|
Yes, Snib is right, You will have to use a javascript to change the URL so as to load the page outside the frame.
_________________________
-Vijay G
 Strive for Perfection 
|

May 27th, 2004, 09:25 PM
|
Authorized User
|
|
Join Date: Jun 2003
Posts: 78
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
I found this post using some javascript to accomplish what you want I think. Hope this helps.
http://forums.aspfree.com/t5783/s.html
You'll have to edit out the html crud in the post though.
|

May 28th, 2004, 08:59 AM
|
Friend of Wrox
|
|
Join Date: Sep 2003
Posts: 171
Thanks: 0
Thanked 1 Time in 1 Post
|
|
Check out irt.org, they probably have something under there JavaScript/FAQs/Frames section that could help you out.
|

May 28th, 2004, 12:45 PM
|
Registered User
|
|
Join Date: May 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Thanks to all who has responded.
Quote:
quote:Originally posted by nuimage
I have a major problem. When my users login from default.asp (also a frames page) they are redirected to a frames page for registered users. The problem that I'm having is that I can't get the registered users frame to open outside of main target frame of default.asp. Does anyone know how to redirect so that the new frame target is at the top of the page.
|
|

May 17th, 2007, 11:36 AM
|
Registered User
|
|
Join Date: Jul 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Had a similar problem, but since the response.redirect was on the action page for a form submission, I added target="_top" to the form tag. Then, on form submission, the redirect on the receiving action page successfully broke out of the framset and went to a completely new frameset page (or non-frameset page), as desired, rather than opening up in the main frame of the original frameset.
|

August 27th, 2008, 05:00 AM
|
Registered User
|
|
Join Date: Aug 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Response.Write("<script>window.open("PageName.aspx ","FrameName");</script>")
|
|
 |