Thursday, March 27, 2008

Auto-refreshing ASP.NET web pages

This can be done in either of 2  ways:

1. HTML header refresh tag

The most common and best known way - a tag of the following format is placed in the HEAD section (of  HTML section) of the page:

< meta equiv="refresh" content="8;url=some.aspx" >

2. Response.AppendHeader method

Response.AppendHeader("Refresh","1200;URL=default.aspx");


Reference: http://geekswithblogs.net/willemf/archive/2005/10/30/58563.aspx

No comments: