经常写ASP,需要定义Application变量、Session变量,有时要检查正确性。虽然网上有类似得程序,但是发现有很多不足,所以自己写了个。 代码如下: <%@LANGUAGE="JavaScript" CODEPAGE="936"%> <% Response.Expires = 0; Response.Buffer = true; var tPageStartTime = new Date(); %> <html> <head> <title>网站-Application变量-Session变量</title> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <STYLE type=text/css> body,td {FONT-SIZE: 10pt; FONT-FAMILY: "Arial", "Helvetica", "sans-serif" } .Table1 { BORDER-RIGHT: #FF9900 1px solid; BORDER-TOP: #FF9900 1px solid; FONT-SIZE: 9pt; BORDER-LEFT: #FF9900 1px solid; BORDER-BOTTOM: #FF9900 1px solid } .Table2 { BACKGROUND-COLOR: #FF9900 } .TR1 { BACKGROUND-color:#FF9955 } .TD1 { BORDER-RIGHT: #FEDFB3 1px solid; BORDER-TOP: #FEDFB3 1px solid; BORDER-LEFT: #FEDFB3 1px solid; color:#ff9900; BORDER-BOTTOM: #FEDFB3 1px solid; BACKGROUND-COLOR: #FEDFB3} .TD2 {BACKGROUND-COLOR: #FEEED6;padding:7px;} </STYLE> <table width="750" border="0" cellpadding="3" cellspacing="1" class="Table1"> <tr> <td class="TR1"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td><font color="#FFFFFF" face="Verdana, Arial, Helvetica, sans-serif"> <strong>服务器Application变量 [共 <%=Application.Contents.Count%> 个] <script>showTools();</script></strong></font></td> <td align="right"> </td> </tr> </table></td> </tr> <tr> <td> <table width="100%" border="0" cellpadding="3" cellspacing="1" class="Table2"> <tr> <td width="35%" class="TD1"> 变量</td> <td width="65%" class="TD1"> 值</td> </tr> <% |
正在阅读:查看服务器Application/Session变量工具查看服务器Application/Session变量工具
2004-02-14 09:33
出处:CSDN
责任编辑:linjixiong
键盘也能翻页,试试“← →”键