[thelist] Redirect AFTER Page loaded with ASP
Ken Schaefer
ken at adOpenStatic.com
Thu Sep 16 17:12:27 CDT 2004
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
From: "Rob Smith" <rob.smith at THERMON.com>
Subject: [thelist] Redirect AFTER Page loaded with ASP
: I'm looking for cleaver ways to redirect a user AFTER stuff has been
written
: to a page in ASP.
:
: Typically you can't by way of response.redirect("somepage.asp"). If you do
: this after you write stuff to the page, you get an error.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
You can't because when you use Response.Redirect you are changing the HTTP
Status to 302 Object Moved, which isn't possible if you're already written
content:
www.adopenstatic.com/faq/headerError.asp
Options:
a) meta refresh tag
b) client side javascript
Do a check on the Microsoft site to see what changes have been made in XP
SP2 - there are restrictions now on what you can redirect to. IIRC
redirecting to anywhere on the same site still works.
Cheers
Ken
More information about the thelist
mailing list