Response.Redirect giving header errors

Results 1 to 2 of 2

Thread: Response.Redirect giving header errors

  1. #1
    Join Date
    Dec 1969

    Default Response.Redirect giving header errors

    How do I get a Response.Redirect command to work in the body of an ASP page? It always gives an error saying the header of the page has already been written.<BR><BR>I&#039m wanting to put the redirect within the body of the page as in Dreamweaver any code using templates that is outside the &#060;html&#062; main tags is wiped out each time the template is updated.<BR><BR>Any thoughts?<BR><BR>Andy

  2. #2
    troy the asp boy Guest

    Default Response.Buffer = True

    you will need to add<BR>response.buffer = true<BR>to your code (near the top of your asp page)<BR>this will prevent any information from being sent to the client&#039s browser until the page has been processed and the html has been created.<BR><BR>troy the asp boy<BR>

Posting Permissions

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