Auto Refresh

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I want to refresh my login page every 10 seconds ... However, it seems that when i execute the below statement ... it will refresh the whole ASP.NET Application, it means that it will refresh every 10 seconds no matter which page i go into ... May i know how to only auto refresh the login page (lng_new.aspx) every 10 seconds ?

Response.AppendHeader("Refresh", Convert.ToString(10) + "; URL=lgn_new.aspx"

thank u ...
 
You can use a javascript function and set the time out property.

<script language="javascript">

function settimer(){
setTimeout("reloadme()",10000);
}

function reloadme(){
window.location.reload();
}
</script>

on the body onload event call the settimer function.
--
--------------------------------
Ibrahim Shameeque
--------------------------------
Machi said:
I want to refresh my login page every 10 seconds ... However, it seems
that when i execute the below statement ... it will refresh the whole
ASP.NET Application, it means that it will refresh every 10 seconds no
matter which page i go into ... May i know how to only auto refresh the
login page (lng_new.aspx) every 10 seconds ??
 
Back
Top