[thelist] Can I do this in ASP?

Means, Eric D eric.d.means at boeing.com
Tue Apr 9 12:07:01 CDT 2002


> >You cannot do a Response.Redirect if you've written anything
> to the browser.
> >The reason for this is that the Response.Redirect is managed
> by an HTTP
> >header sent to the browser, and you all of the headers have
> to be sent
> >first, before any actual HTML can be.
>
> Actually you can if you have buffering turned on (IIS 4 you
> need to set it
> either in the Console, or on each page you want it on; With
> IIS 5 its on by
> default). If you execute an Redirect any Responses previsous
> recorded to be
> sent to the browser are thrown away and the Redirect is
> executed instead.

In fact I'm *technically* correct.  If you're buffering, you haven't
actually written anything to the browser yet, so my statement is actually
true.  However, clearly I should have been more specific (and I had
forgotten it was on by default in IIS5).  Teach me to dash off a reply.  ;)



More information about the thelist mailing list