Tuesday, 1 December 2009

ASP .NET: Refresh page every x secs

Examples
Place inside <~head~> to refresh page after 5 seconds:
<~meta http-equiv="refresh" content="5" /~>
Redirect to http://example.com/ after 5 seconds:
<~meta http-equiv="refresh" content="5;url=http://example.com/" /~>
Redirect to http://example.com/ immediately:
<~meta http-equiv="refresh" content="0;url=http://example.com/" /~>

http://en.wikipedia.org/wiki/Meta_refresh

No comments:

Post a Comment