>>>The HTTP headers are already written to the client browser. Any HTTP header modifications must be made before writing page content.
>You are totally right. :) Why is it like that?
>Is this like that because we call the .asp from a button action?
>If you what a static .ASP page. Can we have the HTML tag in it?
>
To speed things up, the Web server send the response to the client right away even if your page did not finish it's process.
So if your page starts outputing HTML and you redirect, you'll have that error.
To avoid this:
A-Don't place any, I mean any HTML in your ASP page.
B-Place this code: "Response.Buffer = True" as the 2nd line on top of your page after you set the language. Then you'll be able to output HTML and redirect I you want.