refresh IE

23/10/2009 - 10:50 von Mick | Report spam
Hallo Ng

Wie kann man einen automatischen refresh einer asp.net Seite konfigurieren?
Die Seite soll alle 60s aktualisiert werden.

(asp.net Version 2.0)

Danke im Voraus
Gruss Mick
 

Lesen sie die antworten

#1 Mick
23/10/2009 - 11:30 | Warnen spam
Lösung:

<!-- Codes by Quackit.com -->
<html>
<head>
<script type="text/JavaScript">
<!--
function timedRefresh(timeoutPeriod) {
setTimeout("location.reload(true);",timeoutPeriod);
}
// -->
</script>
</head>
<body onload="JavaScript:timedRefresh(5000);">
<p>This page will refresh every 5 seconds. This is because we're using the
'onload' event to call our function. We are passing in the value '5000',
which equals 5 seconds.</p>
<p>But hey, try not to annoy your users too much with unnecessary page
refreshes every few seconds!</p>
</body>
</html>


Gruss Mick

Ähnliche fragen