Redirect Delay

  • Thread starter Thread starter Big E
  • Start date Start date
B

Big E

I'm using ASP.net. I have a piece of code that does a
Response.Redirect("website.aspx")
I want to be able to do the Redirect after 5 seconds of hitting that piece
of code.
I don't want to use MetaTags or JavaScript.
Does the Reponse.Redirect have any delay properties.

Thank you
 
I'm trying to do do that same thing and invoke Response.Redirect 5 seconds after the page has loaded.

I included my System.Threading.Thread.Sleep(5000) statement the Page_Load, just ahead of Response.Redirect

The problem is that the page doesn't fully display before the Response.Redirect takes it to the next page. Is there any way of getting the page to fully load before the Thread.Sleep() command

Thanks.
 
Use a META Refresh tag on the client instead of putting your thread to sleep
on the server.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

Thread.Sleep (5000) said:
I'm trying to do do that same thing and invoke Response.Redirect 5 seconds after the page has loaded.

I included my System.Threading.Thread.Sleep(5000) statement the Page_Load,
just ahead of Response.Redirect.
The problem is that the page doesn't fully display before the
Response.Redirect takes it to the next page. Is there any way of getting
the page to fully load before the Thread.Sleep() command?
 
Back
Top