Auto Refresh

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 ...
 
I

Ibrahim Shameeque

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 ??
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top