Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Response.Redirect blows out frame

Status
Not open for further replies.

Taco

Programmer
Apr 1, 2001
32
US
I have a newly integrated site with a third party that frames my site. I have been able to change all of the href target=_top to either target=_self or target=_parent and these pages keep the third parties' frame now. The one page I can not figure out why it blows out their frame just has a simple line of code that says Response.Redirect(templink) And templink= the same page that does not blow out frames when clicking a link with the target=_self attribute.

I guess my question would be is there another command to use with response.redirect to mimic the HREF target=_self or target=_parent attributes?
 
It seems as if the Redirect method is issuing a browser redirect and not just a frame redirect. Try response.writeing the meta refresh tag like this:

Response.Write &quot;<META http-equiv='Refresh' content='1;url=&quot; & strPageUrl & &quot;'>&quot;

The strPageUrl variable is the page target, and the &quot;1&quot; is the time allowed before the refresh/redirect happens in seconds, which can be changed from 0-N. gettin' jiggy wid' it --
smbure
 
Thanks for the reply. I figured out it was actually happening before the redirect page. There was a default value in Microsoft AdServer that was generating the target=_top reference and blowing out the frame. I had to change the GetAd call to include Ad.TargetFrame._self and now it works. Thanks again.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top