Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6892305
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T06:31:07+00:00 2026-05-27T06:31:07+00:00

Possible Duplicate: Why do I get “Cannot redirect after HTTP headers have been sent”

  • 0

Possible Duplicate:
Why do I get “Cannot redirect after HTTP headers have been sent” when I call Response.Redirect()?

Can I do something like this :

Response.Write(displaying some gif);

Response.Flush();

Thread.Sleep(6000);

Response.Write(@"<script>document.getElementById('loading').style.display='none';</script>");

Response.Buffer = true;

Response.Redirect("some URL")

Because I get this exception Cannot redirect after HTTP headers have been sent if I try.Can anyone help me out how to do this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T06:31:08+00:00Added an answer on May 27, 2026 at 6:31 am

    The cool kids might be using AJAX/JavaScript these days but if that’s more advanced than you want to get into right now, here’s an old-school way of doing something similar:

    Create a “landing” page that shows the GIF and which also has in it’s <head> tag, <meta http-equiv="refresh" content="6;url=http://yourURL/"> where 6 is the number of seconds to wait before redirecting to the “real” page in the URL= part.

    Note that animated GIFs may stop animating between the time the Refresh kicks off and when your real page’s content arrives.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: “Warning: Cannot modify header information - headers already sent by” error In
Possible Duplicate: Is there an easy way in .NET to get “st”, “nd”, “rd”
Possible Duplicate: Install xCode 3.2.3 w/ iPhone SDK 4, get “Base SDK missing”, can't
Possible Duplicate: Allen Holub wrote “You should never use get/set functions”, is he correct?
Possible Duplicate: Enum “Inheritance” I have a number of classes which extend an abstract
Possible Duplicate: Weird “406 not acceptable” error I've been stuck on this ALL DAY!
Possible Duplicate: How to call the OnChange event of “Select” ? (Delphi - WebBrowser)
Possible Duplicate: How to know variables from different…“namespaces” ? I have a webphone integrated
Possible Duplicate: How can i get the path of the current user's “Application Data”
Possible Duplicate: get the value of an url response with curl I have an

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.