2011-03-08 175 views
0
<meta http-equiv="refresh" content="<%=SessionManager.TimeOut%>" /> 

我想這訪問靜態變量主

SessionManager是一個靜態類和超時是在類一個vlaible設置爲20

我期待

<meta http-equiv="refresh" content="20" /> 

被渲染但是

<meta http-equiv="refresh" content="<%=SessionManager.TimeOut%>" /> 

呈現

我這樣做在我的主文件

+0

」/ >如何渲染像 2011-03-08 17:02:44

+1

你已經提出了32個問題,所以你應該真的知道BBCode現在不工作。你能否[請花一些時間與編輯幫助?](http://stackoverflow.com/editing-help)如果你等待志願者走過來,讓你的問題更清晰,你可能得不到你需要的答案。 – 2011-03-08 17:21:48

回答

2

<head> :-)

刪除runat="server"所以不是:

<head runat="server"> 
    <meta http-equiv="refresh" content="<%=SessionManager.TimeOut%>" /> 
    ... 
</head> 

簡單地使用:

<head> 
    <meta http-equiv="refresh" content="<%=SessionManager.TimeOut%>" /> 
    ... 
</head>