Call the left menu page of the main frame page on the timed sending back page:
HTML section
========
Code
< From >
/**/
< IFRAME SRC = "Message/refreshmessage. aspx" Height = "0" Runat = "Server" ID = "Iframerefresh" > </ IFRAME >
</ Form >
. CS Section
========
Code
Protected Void Page_load ( Object Sender, eventargs E)
{
If (Session [ " Isrefresh " ] ! = Null && Session [ " Isrefresh " ]. Tostring () = " 1 " )
{
This . Iframerefresh. attributes [ " SRC " ] = " Reloadontime. aspx " ;
}
Else
{
This . Iframerefresh. attributes [ " SRC " ] = " Otherreloadontime. aspx " ;
}
}
Reloadontime. aspx
HTML section
========
Code
<% @ Page Language = " C # " Autoeventwireup = " True " Codefile = " Reloadontime. aspx. CS " Inherits = " Reloadontime " %>
<!Doctype HTML public "-// W3C // dtd xhtml 1.0 transitional // en" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
< Html Xmlns = "Http://www.w3.org/1999/xhtml" >
< Head Runat = "Server" >
< Title > Refresh session </ Title >
</ Head >
< Body >
< Form ID = "Form1" Runat = "Server" >
< ASP: textbox ID = "Hidtxt_isrefresh" Runat = "Server" > </ ASP: textbox >
</ Form >
</ Body >
</ Html >
< Script Type = "Text/JavaScript" Language = 'Javascript' >
Window. onload = Function ()
{
If (Document. All. hidtxt_isrefresh.value = " 1 " )
{
Window. setinterval ( " Fn_btneventontime () " , 600000 );
}
}
Function Fn_btneventontime ()
{
Window. Location. Reload ();
}
</ Script >
. CS Section
========
Code
Using System;
Using System. Data;
Using System. configuration;
Using System. collections;
Using System. Web;
Using System. Web. Security;
Using System. Web. UI;
Using System. Web. UI. webcontrols;
Using System. Web. UI. webcontrols. webparts;
Using System. Web. UI. htmlcontrols;
Public Partial Class Reloadontime: system. Web. UI. Page
{
Protected Void Page_load ( Object Sender, eventargs E)
{
// If the page does not expire because the user does not operate
If (Session [ " Isrefresh " ] ! = Null )
{
If (Session [ " Isrefresh " ]. Tostring () = " 1 " )
{
This . Hidtxt_isrefresh.text = " 1 " ;
}
Else
{
This . Hidtxt_isrefresh.text = " 0 " ;
}
}
Else
{
This . Hidtxt_isrefresh.text = " 0 " ;
}
}
}