Results 1 to 3 of 3

Thread: HTTP headers

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Feb 2001
    Location
    KL Malaysia
    Posts
    64

    HTTP headers

    I don't understand this error:

    Response object error 'ASP 0156 : 80004005'

    Header Error

    /yadayada/Default.asp, line 8

    The HTTP headers are already written to the client browser. Any HTTP header modifications must be made before writing page content.

    And the code of the asp is:

    <HTML>
    <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
    <HEAD>
    <TITLE>
    </TITLE>
    </HEAD>
    <BODY>
    <% Response.Redirect "top.htm" %>
    </BODY>
    </HTML>


    What's wrong? It worked on my home personal server (NT5) but doesn't work in school's server (NT4).

  2. #2
    Lively Member chrisgaddy's Avatar
    Join Date
    Mar 2001
    Location
    Olive Branch, MS
    Posts
    71
    The problem is with your response.Redirect. At the very top of your page add the following:

    Code:
      <%Response.Buffer=TRUE%>
      <HTML>
      <BODY>...
    Response.Buffer should take care of the problem...

  3. #3
    Frenzied Member monte96's Avatar
    Join Date
    Sep 2000
    Location
    Somewhere in AZ
    Posts
    1,379
    If that is all the code that the ASP page has, don't even bother with the HTML tags... just put the redirect at the top of the page.
    oOOo--oOOo
    __/\/\onte96
    oOOo--oOOo
    Senior Programmer/Analyst
    MCP
    [email protected]
    [email protected]


    Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..

Posting Permissions

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



Click Here to Expand Forum to Full Width