Results 1 to 13 of 13

Thread: Response.Redirect after Response.Flush

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member GlenW's Avatar
    Join Date
    Nov 2001
    Location
    Gateshead, England
    Posts
    479

    Resolved Response.Redirect after Response.Flush

    Is there a way I can call Response.Redirect after I've done a
    Response.Flush?
    I send some html to load an animated gif that plays whilst my page loads,
    it has some extensive database calls to process. However, when I try to
    redirect to my error handling page, if there is an error, I get a 'Cannot
    redirect after HTTP headers have been sent' error.
    I've got round the problem by using a javascript function in the body
    onload event that checks a hidden field whose value is set when an error
    occurs, but this does not seem very elegant.
    Any ideas?
    Last edited by GlenW; Apr 19th, 2005 at 02:57 AM.

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