Response.Redirect Error

Results 1 to 2 of 2

Thread: Response.Redirect Error

  1. #1
    Join Date
    Dec 1969

    Default Response.Redirect Error

    I have following code in a file but getting this error. It works on my dev server but don&#039;t work in uat server. Both have checked mark on Enable buffering.<BR><BR>&#060;% @LANGUAGE = "VBScript" %&#062;<BR>&#060;%<BR>Response.Buffer = true <BR>Response.Redirect("login.asp")<BR>%&#062;<BR>E rror is:-<BR><BR>Response object error &#039;ASP 0156 : 80004005&#039; <BR><BR>Header Error <BR><BR>/webreq/login.asp, line 6 <BR><BR>The HTTP headers are already written to the client browser. Any HTTP header modifications must be made before writing page content. <BR>

  2. #2
    Join Date
    Dec 1969

    Default If your UAT server is a free ISP...

    ...then probably they are putting HTML headers into your pages (to display their banner ads) and that would then mess you up.<BR><BR>Try doing <BR> Response.Clear<BR>just before the<BR> Response.Redirect<BR>to clear out the buffer. May or may not work; can&#039;t hurt.<BR><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