Lihat Alat Variabel Aplikasi/Sesi Server
Penulis:Eve Cole
Waktu Pembaruan:2009-06-24 17:04:58
< %@LANGUAGE="javascript " CODEPAGE="936"%>
<%
Respon.Kedaluwarsa = 0;
Respon.Buffer = benar;
var tPageStartTime = Tanggal baru();
%>
<html>
<kepala>
<title>网站-Aplikasi变量-Sesi变量</title>
<meta http-equiv="Jenis Konten" content="teks/html; charset=gb2312">
<Jenis GAYA=teks/css>
badan,td {UKURAN FONT: 10pt; KELUARGA FONT: "Arial", "Helvetica", "sans-serif" }
.Table1 { BORDER-RIGHT: #FF9900 1px solid; BORDER-TOP: #FF9900 1 piksel padat; UKURAN FONT: 9pt; BORDER-LEFT: #FF9900 1 piksel padat; BATAS-BAWAH: #FF9900 1 piksel padat }
.Tabel2 { WARNA LATAR BELAKANG: #FF9900 }
.TR1 { Warna LATAR BELAKANG:#FF9955 }
.TD1 { BORDER-KANAN: #FEDFB3 1 piksel padat; BORDER-TOP: #FEDFB3 1 piksel padat; BORDER-LEFT: #FEDFB3 1 piksel padat; warna:#ff9900; BORDER-BOTTOM: #FEDFB3 1 piksel padat; WARNA LATAR BELAKANG: #FEDFB3}
.TD2 {WARNA LATAR BELAKANG: #FEEED6;padding:7px;}
</GAYA>
<tabel lebar = "750" border = "0" cellpadding = "3" sel spasi = "1" class = "Tabel1">
<tr>
<td kelas="TR1">
<lebar tabel="100%" border="0" Cellspacing="0" cellpadding="0">
<tr>
<td><font color="#FFFFFF" face="Verdana, Arial, Helvetica, sans-serif"> <strong>服务器Application变量 [共 <%=Application.Contents.Count%> 个]
<skrip>showTools();</script></strong></font></td>
<td menyelaraskan="kanan"> </td>
</tr>
</tabel></td>
</tr>
<tr>
<td>
<lebar tabel = "100%" border = "0" cellpadding = "3" sel spasi = "1" class = "Tabel2">
<tr>
<td width="35%" class="TD1"> 变量</td>
<td width="65%" class="TD1"> 值</td>
</tr>
<%
var iHitungan = 0;
var sVarType = "";
var oApplication = Enumerator baru(Aplikasi.Isi);
var oApp;
for(;!oApplication.atEnd();oApplication.moveNext()){
oApp = oAplikasi.item();
sVarType = typeof(Aplikasi.Isi(oApp));
++iHitungan;
%>
<tr>
<td align="left" valign="middle" class="TD2"><b><%=oApp%></b><br><i dinonaktifkan>[<%if(sVarType=="unknown") {Response.Write("Array");}else{Response.Write(sVarType);}%>]</i></td>
<td valign="tengah" kelas="TD2">
<%
mencoba{
if(sVarType=="tidak diketahui"){
var oTmp = VBArray baru(Aplikasi.Isi(oApp));
Respon.Write(Server.HTMLEncode(oTmp.toArray()));
}else Response.Write(Server.HTMLEncode(Application.Contents(oApp)));
}menangkap(e){
Response.Write("<i dinonaktifkan>[Tidak Diketahui]</i>");
}
%>
</td>
</tr>
<%
}
jika(!iHitung){
%>
<tr>
<td align="left" valign="middle" class="TD2" colspan="2">Aplikasi变量</td>
</tr>
<%
}
%>
</tabel></td>
</tr>
<tr>
<td tinggi="5" class="TR1" colspan="2"></td>
</tr>
</tabel>
<br>
<tabel lebar = "750" border = "0" cellpadding = "3" sel spasi = "1" class = "Tabel1">
<tr>
<td kelas="TR1">
<lebar tabel="100%" border="0" Cellspacing="0" cellpadding="0">
<tr>
<td><font color="#FFFFFF" face="Verdana, Arial, Helvetica, sans-serif"> <strong>服务器Session变量 [共 <%=Session.Contents.Count%> 个]
<skrip>showTools();</script></strong></font></td>
<td align="right">当前会话编号: <%=Session.SessionID%> </td>
</tr>
</tabel></td>
</tr>
<tr>
<td>
<lebar tabel = "100%" border = "0" cellpadding = "3" sel spasi = "1" class = "Tabel2">
<tr>
<td width="30%" class="TD1"> 变量</td>
<td width="70%" class="TD1"> 值</td>
</tr>
<%
var iHitungan = 0;
var sVarType = "";
var oSession = Enumerator baru(Sesi.Isi);
var oSe;
for(;!oSession.atEnd();oSession.moveNext()){
oSes = oSesi.item();
sVarType = typeof(Sesi.Isi(oSes));
++iHitungan;
%>
<tr>
<td align="left" valign="middle" class="TD2"><b><%=oSes%></b><br><i dinonaktifkan>[<%if(sVarType=="unknown") {Response.Write("Array");}else{Response.Write(sVarType);}%>]</i></td>
<td valign="tengah" kelas="TD2">
<%
mencoba{
if(sVarType=="tidak diketahui"){
var oTmp = VBArray baru(Sesi.Isi(oSes));
Respon.Write(Server.HTMLEncode(oTmp.toArray()));
}else Response.Write(Server.HTMLEncode(Session.Contents(oSes)));
}catch(e){ Response.Write("<i dinonaktifkan>[Tidak Diketahui]</i>");
}
%>
</td>
</tr>
<%
}
jika(!iHitung){
%>
<tr>
<td align="left" valign="middle" class="TD2" colspan="2">Sesi变量</td>
</tr>
<%
}
%>
</tabel></td>
</tr>
<tr>
<td tinggi="5" class="TR1" colspan="2"></td>
</tr>
</tabel>
<% tPageEndTime = Tanggal baru(); %>
<center> <%="<br><br>页面执行时间:约 <font color='#990000'><b>"+((tPageEndTime-tPageStartTime))+"</b></font> 毫秒"%></pusat>
</tubuh></html>