METHOD 1
Using the standard HTML Mewta tag 'Refresh'. This tag specifies a delay before the browser automatically reloads the page. The delay is specified in seconds. You can specify a URL also to reload. If you do not specify a URL, it will relaod the same page after the interval.
<META HTTP-EQUIV="Refresh" CONTENT="10;URL=http://www.dotnetspider.com";>
The above META tag tells the browser to reload the current page after 10 SECONDS. SO, if you have the above meta tag in your page, 10 seconds after it is loaded, it will reload the page - but the URL specified is http://www.dotnetspider.com. So, after 10 seconds, your page will be replaced with http://www.dotnetspider.com.
Note that the META tags should be placed in the head portion of the HTML document, between the <HEAD> and </HEAD> tags.
METHOD 2
This is the ASP.Net way !
Response.AppendHeader("Refresh", "10; URL=http://www.dotnetspider.com")
|
No responses found. Be the first to respond and make money from revenue sharing program.
|