[thelist] Can I do this in ASP?

Anthony Baratta Anthony at Baratta.com
Tue Apr 9 12:00:01 CDT 2002


At 09:52 AM 4/9/2002, Means, Eric D wrote:

>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.

---
Anthony Baratta
President
Keyboard Jockeys

"Conformity is the refuge of the unimaginative."




More information about the thelist mailing list