PDA

View Full Version : adding a target from response.redirect to _self


chris_angell
03-04-2003, 06:03 PM
hello..
I have a page in a iframe that is posting info to an asp page but the response.redirect page when the code has finished, I want to open in the same frame but at the moment it opens in a new window. I have tried to put an over all page target on site plus iframe, that didn't work


what can I do ??????

help meeeee :) thanks

Spudhead
03-04-2003, 06:22 PM
The only way I know to get round this is to pass your processing page the name of the page you want in your frameset, and make your frameset page dynamically load that page. Make sense? :)

Like:

"index.asp" is your frameset page. Has 2 frames: "ftop" and "fbody".

You load a html form page into fbody, that submits to "form_procesor.asp". Only you pass it a hidden field, "redirectPage", which contains the path to your thankyou page (or wherever you want them to go).

Your processing page does its thing with the form, and then:
<%
strRedir="index.asp?pg="&request.form("redirectPage")
response.redirect(strRedir)
%>

index.asp then grabs the filename from the querystring and drops it into the relevant frame tag.

Any help?

chris_angell
03-10-2003, 03:18 PM
I tried the above but it didn't work.. now I am thinking.. is it possible to post information to the server but keep it hidden. so say I post to post.asp, it does not open a page up in a new window.. it just posts the information to the server and you can't tell info has just been posted ??? hmmmmmm

hope that made scense.. if you can do the above my problem is solved ????

thank you

raf
03-10-2003, 04:09 PM
it doesn't make sense to me.

you can post a form and process it serversided without giving info back to the client. (it's even very simple) but what do you wan't to show then to the client ?
close the window ?
show a blank page ?
show the previous page ?
show a messgebox?

chris_angell
03-10-2003, 04:27 PM
I managed to work out my problem.. thanks anyway.