CodeVerge.Net Beta
Login Idy
Register Password
  Forgot?
Explore    Item Entry    Members   
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML





Zone: > NEWSGROUP > Asp.Net Forum > visual_studio.visual_web_developer_2005_express Tags:
Item Type: NewsGroup Date Entered: 10/11/2004 7:42:38 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 4 Views: 15 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
5 Items, 1 Pages 1 |< << Go >> >|
timlshu
Asp.Net User
Auto page refresh10/11/2004 7:42:38 PM

0/0

I am trying to figure out how to get a specific page to auto resfresh. I found the:
<meta http-equiv="refresh" content="10">

But the problem is that I am using MasterPages. I know where to put the metatag on the master page, but I only want one of the child pages to auto refresh, not all of the pages that use it.

I have tried to place the metatag on the specific aspx page that I want, but of course, the active schema will not allow me to use it (for obvious reasons).

Is there a way to get the page to auto resfresh?

Thanks for the help.
timlshu
Asp.Net User
Re: Auto page refresh10/13/2004 3:07:31 AM

0/0


Edited by SomeNewKid. Please post code between <code> and </code> tags.



Well, I was under the mistaken impresion that I could not use scripts either, but I was wrong.

Just place this script inside the contentholder, "var limit min:sec"

<script>

var limit="15:0"

if (document.images)
{
var parselimit=limit.split(":")
parselimit=parselimit[0]*60+parselimit[1]*1
}
function beginrefresh()
{
if (!document.images)
return
if (parselimit==1)
window.location.reload()
else
{
parselimit-=1
curmin=Math.floor(parselimit/60)
cursec=parselimit%60
setTimeout("beginrefresh()",1000)
}
}
window.onload=beginrefresh
</script>
Fredrik N
Asp.Net User
Re: Auto page refresh10/13/2004 4:32:02 AM

0/0

You can also programmatically add a metadata to the page:


void Page_Load()
{
Page.Header.Metadata.Add(key,value)
}

/Fredrik Norm?n NSQUARED2
Microsoft MVP, MCSD, MCAD, MCT

Cornerstone

My Blog, ASP.Net 2.0 etc
timlshu
Asp.Net User
Re: Auto page refresh10/13/2004 1:05:56 PM

0/0

Interesting.
I have no idea what the key or value would be, so this is no help (and help is no help).

I am just starting to learn how to program, so I don't "get" most things.

This does look like the way I want to go, so that I can let the individual user set the refresh rate.
Eol
Asp.Net User
Re: Auto page refresh10/21/2004 8:10:49 PM

0/0

Fredrik,

The code you supplied there creates the following meta tag:

<meta name="refresh" content="10">


The .Add method seems to prefix everything with name= , content=

I can't figure out a way to make it render

<meta http-equiv="refresh" content="10">

Maybe it isn't possible.

Craig
5 Items, 1 Pages 1 |< << Go >> >|



Search This Site:


Meet Our Sponsors:



Other Resources:

On submit page button code execute every time when page refresh - ng ... ... submit page button code execute every time when page refresh, > ROOT > ... Page 2 - Smart Auto Refresh : Smart Auto Refresh - Coding Time (Page 2 of 2 ) I ...
Auto Publish .flas from Web? - macromedia.flash - Web Programming ... Auto Publish .flas from Web?, > ROOT > NEWSGROUP > Adobe-Macromedia Forums > macromedia.flash, Date: 2/27/2008 5:53: ... Auto refresh Causes a web page to ...
HIOX HTML Tutorial - Auto refresh html page, php web page, setting ... Auto refresh / Reload web page. Topic ... How can I make my html page to auto refresh? Explanation ... you want the page to refresh after 10 seconds interval, ...
CodeProject: Auto Refresh Web Page. Free source code and programming help Some simple ways to auto refresh your web page; Author: kubben; Section: ASP.NET; Chapter: Web Development ... there is a need to auto refresh the page. ...
NW Auto Page Photo classified ads of Oregon's used cars, trucks, motorcycles, boats, farm equipment, and recreational vehicles for sale.
Refresh Thing : Wii Tracker, Inventory Stock Tracker Refresh Thing checks PS3, Wii, Xbox 360 and Guitar Hero and iPhone status across ... This is a simple tool to auto-refresh any URL. Try it! ...
AUTO REFRESH Auto Refresh Page with Time script. By JavaScript Kit (javascriptkit.com) ... On the page that we have got the auto refresh on, we also have a music player as ...
Is it possible for a web page to auto-refresh at a particular time? Please copy & paste below script for auto refreshment: - -script> <!-- /* Auto Refresh Page with Time script By JavaScript Kit (javascriptkit.com) Over 200 ...
Auto Refresh - FFXIclopedia - a Wikia Gaming wiki Auto Refresh. From FFXIclopedia, the free Final Fantasy XI ... Random Page. Random Image. Random Video. Invite Friends to FFXIclopedia. Character Creation" ...
Smart Auto Refresh Smart Auto Refresh (Page 1 of 2 ) In this tutorial Hermawan will teach ... In this article, I will show you how to build a Smart Auto Refreshing report page. ...
Auto Page Refresh [Archive] - Dynamic Drive Forums [Archive] Auto Page Refresh JavaScript ... General Coding > JavaScript > Auto Page Refresh. PDA. View Full Version : Auto Page Refresh. NGJ. 05-16-2006, ...


 
All Times Are GMT