Wrox Programmer Forums
|
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
 
Old May 27th, 2004, 05:50 PM
Registered User
 
Join Date: May 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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.

 
Old May 27th, 2004, 05:54 PM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,285
Thanks: 0
Thanked 2 Times in 2 Posts
Default

I don't believe you can do this in ASP. You will probably need write some JavaScript from your ASP.

HTH,

Snib

<><
 
Old May 27th, 2004, 06:04 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

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
 
Old May 27th, 2004, 09:25 PM
Authorized User
 
Join Date: Jun 2003
Posts: 78
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to hcweb
Default

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.
 
Old May 28th, 2004, 08:59 AM
Friend of Wrox
 
Join Date: Sep 2003
Posts: 171
Thanks: 0
Thanked 1 Time in 1 Post
Default

Check out irt.org, they probably have something under there JavaScript/FAQs/Frames section that could help you out.

 
Old May 28th, 2004, 12:45 PM
Registered User
 
Join Date: May 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.

 
Old May 17th, 2007, 11:36 AM
Registered User
 
Join Date: Jul 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.

 
Old August 27th, 2008, 05:00 AM
Registered User
 
Join Date: Aug 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Response.Write("<script>window.open("PageName.aspx ","FrameName");</script>")








Similar Threads
Thread Thread Starter Forum Replies Last Post
response.redirect and frames issues neil.abachi07 Classic ASP Basics 31 February 27th, 2007 10:10 PM
response.redirect sarah lee ASP.NET 1.0 and 1.1 Basics 1 October 27th, 2006 08:57 AM
response.redirect ava_h .NET Framework 2.0 0 October 18th, 2006 10:21 PM
response.redirect crmpicco Classic ASP Basics 3 February 9th, 2005 01:50 AM
Response.Redirect dhborchardt Classic ASP Basics 4 June 16th, 2003 05:56 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.