Thursday, March 22, 2012

Waiting 5 Seconds

I'm trying to create a "You will be redirected in 5 seconds" page in ASP.NET (VB.NET as the language). I've try to setup a timer control but it does not do the Response.redirect() function and keeps triggering even through I disable the timer.

Does anyone have another solution for this?Hi,

Can you try the System.Threading.Thread.Sleep() method?

Regards,
You can do this :


Response.AddHeader("REFRESH","5;URL=page2.aspx");

0 comments:

Post a Comment