[thelist] ASP: changing response.redirect headers

Tab Alleman Tab.Alleman at MetroGuide.com
Tue Oct 22 17:10:00 CDT 2002


Unfortunately I can't use Server.Transfer, because I need to redirect
the user to a (possibly non-ASP) page on Somebody Else's Server.

I can't write a .dll (yet) because my company hasn't invested in Visual
Basic (yet).  I'm stuck with ASP 3.0 (for now).

Chris lost me with this comment:  "you can either send a straight-up 302
or just change the context on the server-side", but I think I will look
into the response.status thingy.



-----Original Message-----
From: Scott Schrantz [mailto:scotts at rci-nv.com]
Sent: Tuesday, October 22, 2002 4:13 PM
To: 'thelist at lists.evolt.org'
Subject: RE: [thelist] ASP: changing response.redirect headers


> I want to do a server-side redirect using the 307 (or possibly
> 301) header.  Is this possible, and how?

I've had luck with code like this:

<%
Response.Status = "301 Moved"
Response.AddHeader "Location", "http://www.thesite.com/newpage.asp"
Response.End
%>

--
Scott Schrantz
work: www.rci-nv.com
play: www.computer-vet.com
--
For unsubscribe and other options, including
the Tip Harvester and archive of thelist go to: http://lists.evolt.org
Workers of the Web, evolt !



More information about the thelist mailing list