p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


  Return to Index  

proasp_howto thread: Error Message


Message #1 by rangelini@w... on Mon, 19 Mar 2001 18:22:05
Thank you. I just added 
<%  @LANGUAGE = "VBScript" %>
<% Response.Buffer = True %>
 to the top and it works fine.

> basics:
> 
> http://www.aspalliance.com/nothingmn/view.asp?aid=30
> 
> 
> 
> 
> At 10:22 AM 3/19/2001, you wrote:
> >I have to reset the cookies to zero and to expire in a day once the 
store
> >procedure runs. But I keep getting this error message.
> >
> >Response object error 'ASP 0156 : 80004005'
> >Header Error
> >/store/CompleteOrder.asp, line 452
> >The HTTP headers are already written to the client browser. Any HTTP
> >header modifications must be made before writing page content.
> >
> >This is the code for the cookies:
> >response.cookies("CartId").Item = 0
> >response.Cookies("CartId").Expires = now + 1
> >response.cookies("ModelCount").Item =0
> >response.Cookies("ModelCount").Expires= now + 1
> >
> >What am I doing wrong? Isn't this the way to reset cookies?
> >Thanks in advance for any help,
> >Renata
> >
> 
> Robert Chartier
> Author, AspFree.com
>  xxx-xxx-xxxx
> rchartierh@a...
> http://www.aspfree.com/devlinks
> http://www.aspfree.com/authors/robert
> http://www.aspalliance.com/nothingmn
> 

  Return to Index