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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Redirection

Status
Not open for further replies.

01310564

Programmer
Oct 9, 2003
96
GB
in an asp page using vb server script how do i redirect a url to 'target=_parent' I have tried using response.Redirect but that doesn't seem to work.

Any ideas

Cheers,

Hugh
 
YOu need to do it client-side...

%>
<script>
document.parent.location = &quot;<%=pageName%>&quot;
</script>
<%

Programming today is a race between software engineers striving to build better and bigger idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. - Rick Cook (No, I'm not Rick)

fart.gif
 
Hi,

Not sure exactly what you are trying to do target=_parent is not a valid URL, if you want to navigate to a url and set the target, i'm not sure that's possible in ASP, perhaps you could write a bit of HTML/Javascript to do it?





Hope this helps,

Phil Clare
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top