Timelimit of showing ASP.NET Page

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
 
G

Guest

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
 
A

Ariel Popovsky

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!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top