I just started reading tutorials on ASP...can someone tell me what's wrong with the following code??
PHP Code:<HTML>
<HEAD>
<Title>Example</title>
</HEAD>
<BODY>
<%
Response.Cookies("Colour") = "Red"
Dim Back
Back = Request.Cookies("Colour")
Response.Write("<font color=" + Back + ">Hello</font>")
%>
</BODY>
</HTML>
I get the following error:
Response object error 'ASP 0156 : 80004005'
Header Error
/MyWeb/Test.asp, line 8
The HTTP headers are already written to the client browser. Any HTTP header modifications must be made before writing page content.
Thanks.![]()




Reply With Quote