My redirect wont work

Results 1 to 3 of 3

Thread: My redirect wont work

  1. #1
    Join Date
    Dec 1969

    Default My redirect wont work

    I am attempting to redirect to a confirming page following a successful data entry on an asp page. The Code drops into an if statment following a validation of the form fields finding no errors. <BR><BR>Code<BR>If Session ("CustomErrrors") = "" then<BR> Response.Redirect (RedirectPath)<BR> Write to database etc.<BR>End if<BR><BR>Error :<BR>Response object error &#039ASP 0156 : 80004005&#039 <BR><BR>Header Error <BR><BR>/OnLineResidential/GettingStarted/RegisterAgent1.asp, line 125 <BR><BR>The HTTP headers are already written to the client browser. Any HTTP header modifications must be made before writing page content. <BR><BR><BR>

  2. #2
    Join Date
    Dec 1969

    Default RE: My redirect wont work

    set up buffer = true and try it again.<BR><BR>

  3. #3
    Skippie Guest

    Default RE: My redirect wont work

    Michael is right, and the correct syntax is:<BR><BR>Response.Buffer = True<BR><BR>*********************************<BR>< BR>Another way to make it work is to place all the Response.Redirect<BR>statements BEFORE any HTML.<BR><BR><BR><BR>-- Skippie <BR><BR><BR><BR><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