Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP 3 Classic ASP Active Server Pages 3.0 > Classic ASP Basics
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old May 27th, 2004, 05:50 PM
Registered User
 
Join Date: May 2004
Location: , , .
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.

Reply With Quote
  #2 (permalink)  
Old May 27th, 2004, 05:54 PM
Friend of Wrox
 
Join Date: Nov 2003
Location: , , .
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

<><
Reply With Quote
  #3 (permalink)  
Old May 27th, 2004, 06:04 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: Bangalore, KA, India.
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
Reply With Quote
  #4 (permalink)  
Old May 27th, 2004, 09:25 PM
Authorized User
 
Join Date: Jun 2003
Location: Gulfport, Ms, USA.
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.
Reply With Quote
  #5 (permalink)  
Old May 28th, 2004, 08:59 AM
Friend of Wrox
 
Join Date: Sep 2003
Location: Minneapolis, MN, USA.
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.

Reply With Quote
  #6 (permalink)  
Old May 28th, 2004, 12:45 PM
Registered User
 
Join Date: May 2004
Location: , , .
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.

Reply With Quote
  #7 (permalink)  
Old May 17th, 2007, 11:36 AM
Registered User
 
Join Date: Jul 2004
Location: , , .
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.

Reply With Quote
  #8 (permalink)  
Old August 27th, 2008, 05:00 AM
Registered User
 
Join Date: Aug 2008
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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



Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 07:17 PM.


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