Welcome to Dream.In.Code
Become an Expert!

Join 150,118 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,975 people online right now. Registration is fast and FREE... Join Now!




Refreash a page only once

 
Reply to this topicStart new topic

Refreash a page only once

reCoded
1 Jul, 2008 - 08:50 AM
Post #1

D.I.C Head
**

Joined: 25 Feb, 2008
Posts: 166

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
+Quote Post

baavgai
RE: Refreash A Page Only Once
1 Jul, 2008 - 09:43 AM
Post #2

Dreaming Coder
Group Icon

Joined: 16 Oct, 2007
Posts: 2,282



Thanked: 136 times
Dream Kudos: 475
Expert In: C, C++, Java, C#, ASP.NET, PHP, Perl, Python, Oracle, SQL Server, MySql, HTML, JavaScript, Lua, Cheese

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 offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/9/09 01:18AM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month