Welcome to Dream.In.Code
Getting Help is Easy!

Join 117,524 Programmers for FREE! Ask your question and get quick answers from experts. There are 1,981 online right now! We've got more than 500 tutorials and 2,000 snippets. Join and find out why Dream.In.Code is the #1 programming help community on the internet! Registration is fast and FREE... Join Now!



Refreash a page only once

 
Reply to this topicStart new topic

Refreash a page only once

reCoded
post 1 Jul, 2008 - 09:50 AM
Post #1


D.I.C Head

**
Joined: 25 Feb, 2008
Posts: 140

Hey all,

I am looking to refresh a site once and thats it.

This is what I found but it refreshes in intervals:

<meta http-equiv=refresh content=30"; url=index.html">

Is there code similar to this so I can have the site refresh on load and thats it?


Thanks,
reCoded.

User is offlineProfile CardPM

Go to the top of the page


baavgai
post 1 Jul, 2008 - 10:43 AM
Post #2


Dreaming Coder

Group Icon
Joined: 16 Oct, 2007
Posts: 1,759



Thanked 69 times

Dream Kudos: 400

Expert In: C, C++, Java, C#, ASP.NET, PHP, Perl, Python, Oracle, SQL Server, MySql, HTML, JavaScript, Lua

My Contributions


Very odd request, but amusing. You're using ASP.NET, right? So you can control the content of the page on the server side and also track the session...

When a page is requested, you check the session for a flag. If the flag isn't there, then you add that refresh meta tag to your page and set the flag in the session. That should do it, one refresh, no more.

Hope this helps.
User is online!Profile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 10/7/08 03:38PM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month