redirection not working

Results 1 to 3 of 3

Thread: redirection not working

  1. #1
    Join Date
    Dec 1969

    Default redirection not working

    Hello,<BR>I&#039;m getting this error when trying to add redirection after form submission.<BR><BR>"Response object error &#039;ASP 0156 : 80004005&#039; <BR>Header Error <BR>all.asp, line 134 <BR>The HTTP headers are already written to the client browser. Any HTTP header modifications must be made before writing page content."<BR><BR>This is the end of my code<BR><BR>Set objCmd = Nothing<BR>objConn.Close<BR>Set objConn = Nothing<BR>&#039;un-comment this line to point to your desired confirm page<BR> Response.Redirect("displayall.asp")<BR>%&#062; <BR><BR>any ideas<BR>

  2. #2
    Sunny Guest

    Default RE: redirection not working

    roger, i think it is the begining of the code that is causing the problem. somewhere in there, u have a response.write("") or a link to a style sheet.... something that has to change the contents of the page..<BR><BR>sunny

  3. #3
    Join Date
    Dec 1969

    Default RE: redirection not working

    try putting response.buffer = true at the top of the page

Posting Permissions

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