浙林龙哥

   :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
 
Add the following code to the template.master.cs file:

        protected void Page_PreRender(object sender, EventArgs e)
        
{
            HttpContext.Current.Response.AppendHeader(
"Refresh",
                Convert.ToString(((HttpContext.Current.Session.Timeout 
* 60- 5))
                
+ "; Url=default.aspx?timeout=true");

        }


obviously, the value Url=default.aspx?timeout=true would be that of an informational page or  a parameter added onto the default.aspx page that when opened diplays the 'information' panel.
posted on 2008-01-21 10:35  浙林龙哥  阅读(294)  评论(0编辑  收藏  举报