|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
强大的可扩展性。ASP具有强大的扩展性,可以实现与多种网络、硬件设备的连接:通过专用的通讯线路远程接入企业;通过远程拨号服务器为远程拨号客户提供服务;通过WAP为移动电话互联网客户服务。application|session|变量|服务器常常写ASP,必要界说Application变量、Session变量,偶然要反省准确性。固然网上有相似得程序,可是发明有良多不敷,以是本人写了个。
代码以下:
<%@LANGUAGE="JavaScript"CODEPAGE="936"%>
<%
Response.Expires=0;
Response.Buffer=true;
vartPageStartTime=newDate();
%>
<html>
<head>
<title>网站-Application变量-Session变量</title>
<metahttp-equiv="Content-Type"content="text/html;charset=gb2312">
<STYLEtype=text/CSS>
body,td{FONT-SIZE:10pt;FONT-FAMILY:"Arial","Helvetica","sans-serif"}
.Table1{BORDER-RIGHT:#FF99001pxsolid;BORDER-TOP:#FF99001pxsolid;FONT-SIZE:9pt;BORDER-LEFT:#FF99001pxsolid;BORDER-BOTTOM:#FF99001pxsolid}
.Table2{BACKGROUND-COLOR:#FF9900}
.TR1{BACKGROUND-color:#FF9955}
.TD1{BORDER-RIGHT:#FEDFB31pxsolid;BORDER-TOP:#FEDFB31pxsolid;BORDER-LEFT:#FEDFB31pxsolid;color:#ff9900;BORDER-BOTTOM:#FEDFB31pxsolid;BACKGROUND-COLOR:#FEDFB3}
.TD2{BACKGROUND-COLOR:#FEEED6;padding:7px;}
</STYLE>
<tablewidth="750"border="0"cellpadding="3"cellspacing="1"class="Table1">
<tr>
<tdclass="TR1">
<tablewidth="100%"border="0"cellspacing="0"cellpadding="0">
<tr>
<td><fontcolor="#FFFFFF"face="Verdana,Arial,Helvetica,sans-serif"><strong>服务器Application变量[共<%=Application.Contents.Count%>个]
<script>showTools();</script></strong></font></td>
<tdalign="right"></td>
</tr>
</table></td>
</tr>
<tr>
<td>
<tablewidth="100%"border="0"cellpadding="3"cellspacing="1"class="Table2">
<tr>
<tdwidth="35%"class="TD1">变量</td>
<tdwidth="65%"class="TD1">值</td>
</tr>
<%
variCount=0;
varsVarType="";
varoApplication=newEnumerator(Application.Contents);
varoApp;
for(;!oApplication.atEnd();oApplication.moveNext()){
oApp=oApplication.item();
sVarType=typeof(Application.Contents(oApp));
++iCount;
%>
<tr>
<tdalign="left"valign="middle"class="TD2"><b><%=oApp%></b><br><idisabled>[<%if(sVarType=="unknown"){Response.Write("Array");}else{Response.Write(sVarType);}%>]</i></td>
<tdvalign="middle"class="TD2">
<%
try{
if(sVarType=="unknown"){
varoTmp=newVBArray(Application.Contents(oApp));
Response.Write(Server.HTMLEncode(oTmp.toArray()));
}elseResponse.Write(Server.HTMLEncode(Application.Contents(oApp)));
}catch(e){
Response.Write("<idisabled>[Unknow]</i>");
}
%>
</td>
</tr>
<%
}
if(!iCount){
%>
<tr>
<tdalign="left"valign="middle"class="TD2"colspan="2">没有Application变量</td>
</tr>
<%
}
%>
</table></td>
</tr>
<tr>
<tdheight="5"class="TR1"colspan="2"></td>
</tr>
</table>
<br>
<tablewidth="750"border="0"cellpadding="3"cellspacing="1"class="Table1">
<tr>
<tdclass="TR1">
<tablewidth="100%"border="0"cellspacing="0"cellpadding="0">
<tr>
<td><fontcolor="#FFFFFF"face="Verdana,Arial,Helvetica,sans-serif"><strong>服务器Session变量[共<%=Session.Contents.Count%>个]
<script>showTools();</script></strong></font></td>
<tdalign="right">以后会话编号:<%=Session.SessionID%></td>
</p>大家可以自己去看一看.可以说看得想呕吐.以前有次下了个动网来看.里面连基本内置函数的保护措施(函数没防御性)都没有.难怪经常补这个补那个了.可能现在.NET版会好点吧 |
|