Timelimit of showing ASP.NET Page

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello!

Please could someone advice me, is it possible to show an ASP.NET page for a
user say for 5 minutes and after this time has passed the user would be
redirected to another page?

Thanks.

Peter
 
There is nothing you have for asp.net, this is just HTML using a meta tag

<meta HTTP-EQUIV="REFRESH" content="0;
url=http://www.yourdomain.com/index.html">

Content="0" => 0 is the number of seconds
Content="300" => is 300 seconds (5 min)

This will go in your <head> of the aspx page
 
Hello Tampa,

You could also use the Javascript function setTimeout:

setTimeout("your_redirect_function()",300000);

But don´t rely on client side code, you should also provide a link if the
user´s browser fails to perform the redirection.

Greetings!
 
Back
Top