Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 How do you set target frame w/ Response.Redirect
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

WildBill
Starting Member

USA
14 Posts

Posted - 11 June 2001 :  13:42:16  Show Profile  Visit WildBill's Homepage
Does anyone know how to set your target frame using the Response.Redirect command?

Here is the code in question, from the "login b4 access to forum thread" I want the end result to load the page in the whole window not the current frame.

Can someone tell me what I need to do to modify the Response.Redirect command to accomplish this? I have looked thru my Javascript nutshell book but can't find anything to help me.

TIA!

<%'Contents of "inc_requirelogin.asp"'Require login to even see the boardif Not len( Request.Cookies(strUniqueID & "user")("name") ) > 0 thenResponse.Redirect("register.asp")end if%> <html><body> <br><br><br><br> <b><font size="2" face="verdana">Login <%= strLabel %></font></b> <hr> <form method="post" action="default.asp?f=chk"> Login:<br> <input type="text" size="10" name="name"><br><br> Pass:<br> <input type="password" size="10" name="password"><br><br> <input type="submit" name="submit" value="login"> </form><br><br><br> </body> </html> <% Response.Flush Response.Endend if%>


Bill Kramer
Director of Technology Services
Systemedics, Inc.

WildBill
Starting Member

USA
14 Posts

Posted - 11 June 2001 :  13:45:47  Show Profile  Visit WildBill's Homepage
Sorry about the formatting, it took out the spacing once I pasted it.

The line is question is:

Response.Redirect("register.asp")

Bill Kramer
Director of Technology Services
Systemedics, Inc.
Go to Top of Page

big9erfan
Average Member

540 Posts

Posted - 11 June 2001 :  14:12:12  Show Profile
when posting code you can use these tags to keep your formatting.

[ code ]

and

[ /code ]



http://www.ugfl.net/forums
Go to Top of Page

redbrad0
Advanced Member

USA
3725 Posts

Posted - 11 June 2001 :  14:14:10  Show Profile  Visit redbrad0's Homepage  Send redbrad0 an AOL message
wild, i do not believe that you can do this. it is probley something you will have to do with javascript

Brad
Go to Top of Page

Dan Martin
Average Member

USA
528 Posts

Posted - 11 June 2001 :  14:30:59  Show Profile  Visit Dan Martin's Homepage  Send Dan Martin an AOL message  Send Dan Martin an ICQ Message  Send Dan Martin a Yahoo! Message
I think he's right, javascript is your only option:
<script language=javascript>
this.parent.someframe.location.href='myURL.asp'
</script>

(I think that's the right syntax)

Go to Top of Page

tilttek
Junior Member

Canada
333 Posts

Posted - 11 June 2001 :  14:50:39  Show Profile  Visit tilttek's Homepage
quote:

wild, i do not believe that you can do this. it is probley something you will have to do with javascript



There is a way, by changing the header, but it's very hard... And don't always work with IE.


Philippe Gamache
http://www.tilttek.com
http://www.lapageamelkor.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.29 seconds. Powered By: Snitz Forums 2000 Version 3.4.07