正在阅读:查看服务器Application/Session变量工具查看服务器Application/Session变量工具

2004-02-14 09:33 出处:CSDN 作者:alcoholwang 责任编辑:linjixiong

   var iCount = 0;
   var sVarType = "";
   var oApplication = new Enumerator(Application.Contents);
   var oApp;
   for(;!oApplication.atEnd();oApplication.moveNext()){
    oApp = oApplication.item();
    sVarType = typeof(Application.Contents(oApp));
    ++iCount;
    %>
          <tr>
            <td align="left" valign="middle" class="TD2"><b><%=oApp%></b><br><i disabled>[<%if(sVarType=="unknown") {Response.Write("Array");}else{Response.Write(sVarType);}%>]</i></td>
            <td valign="middle" class="TD2">
   <%
   try{
    if(sVarType=="unknown"){
      var oTmp = new VBArray(Application.Contents(oApp));
      Response.Write(Server.HTMLEncode(oTmp.toArray()));
    }else Response.Write(Server.HTMLEncode(Application.Contents(oApp)));
   }catch(e){
    Response.Write("<i disabled>[Unknow]</i>");
   }
   %>
   </td>
          </tr>
  <%
   }
   if(!iCount){
  %>
          <tr>
            <td align="left" valign="middle" class="TD2" colspan="2">没有Application变量</td>
          </tr>
  <%
   }
  %>
      </table></td>
    </tr>
    <tr>
      <td height="5" class="TR1" colspan="2"></td>
    </tr>
  </table>
  <br>
  <table width="750" border="0" cellpadding="3" cellspacing="1" class="Table1">
    <tr>
键盘也能翻页,试试“← →”键

关注我们

最新资讯离线随时看 聊天吐槽赢奖品