PWS and HTML comments

Results 1 to 2 of 2

Thread: PWS and HTML comments

  1. #1
    Join Date
    Dec 1969

    Default PWS and HTML comments

    I&#039;m running PWS on windows 98. The following ASP:<BR><BR>&#060;!--some comment--&#062;<BR>&#060;%Response.Redirect "some.asp"%&#062;<BR><BR>gives me this error:<BR><BR>Response object error &#039;ASP 0156 : 80004005&#039; <BR>Header Error <BR>The HTTP headers are already written to the client browser. Any HTTP header modifications must be made before writing page content. <BR><BR>If I put the above ASP on an NT server then there is no problem. Also, if I remove the html comment so the ASP is simply:<BR><BR>&#060;%Response.Redirect "some.asp"%&#062;<BR><BR>then I don&#039;t have any problem. In short, why is it that under PWS html comments conflict with ASP redirection commands and is there any solution?

  2. #2
    Join Date
    Dec 1969

    Default RE: PWS and HTML comments

    it&#039;s not comments per se - it&#039;s any HTML output<BR><BR>either Response.Redirect() before you output *any* HTML or place <BR><BR>&#060;% Response.Buffer = true %&#062; at the TOP of your ASP scripts, immediately after the language directive<BR><BR>j

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts