C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




How to automatically refresh a web page ?


Posted Date: 04 Apr 2004    Resource Type: Articles    Category: Web Applications

Posted By: Tony John       Member Level: Gold
Rating:     Points: 10



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")




Responses


No responses found. Be the first to respond and make money from revenue sharing program.

Feedbacks      
Popular Tags   What are tags ?   Search Tags  
(No tags found.)

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: Storing and Accessing Cookies from web pages server side code
Previous Resource: ASP.NET Data Binding
Return to Discussion Resource Index
Post New Resource
Category: Web Applications


Post resources and earn money!
 
Related Resources



dotNet Slackers   BizTalk Adaptors    Web Design

web conferencing services

Contact Us    Privacy Policy    Terms Of Use