Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

¼òÒ×ASPÎļþ»º´æ¼¼Êõ

 ×¢Ò⣺ϵͳÐèÒªFSOȨÏÞ¡¢XMLHTTPȨÏÞ
ϵͳ°üÀ¨Á½¸öÎļþ£¬Æäʵ¿ÉÒԺϲ¢ÎªÒ»¸ö¡£Ö®ËùÒÔ·ÖΪÁ½¸öÊÇÒòΪ²¿·Öɱ¶¾Èí¼þ»áÒòΪÀï±ßº¬ÓÐFSO¡¢XMLHTTP²Ù×÷¶ø±»ÈÏΪÊǽű¾Ä¾Âí¡£
µ÷ÓÃʱ£¬ÐèÒªÔÚASPÒ³ÃæµÄ×îÉϱ߰üº¬Ö÷Îļþ£¬È»ºóÔÚϱßдÏÂÒÔÏ´úÂë
Set MyCatch=new CatchFile
MyCatch.Overdue=60*5        'Ð޸ĹýÆÚʱ¼äÉèÖÃΪ5¸öСʱ
if MyCatch.CatchNow(Rev) then
        response.write MyCatch.CatchData
        response.end
end if
set MyCatch=nothing
¸´ÖÆ´úÂë
ÎļþÒ»£ºFileCatch.asp µÄ´úÂë
<!--#include file="FileCatch-Inc.asp"-->
<%
'---- ±¾ÎļþÓÃÓÚÇ©ÈëԭʼÎļþ£¬ÊµÏÖ¶ÔÒ³ÃæµÄÎļþCatch
'---- 1¡¢Èç¹ûÎļþÇëÇóΪPOST·½Ê½£¬ÔòÈ¡Ïû´Ë¹¦ÄÜ
'---- 2¡¢ÎļþµÄÇëÇó²»ÄÜ°üº¬ÏµÍ³µÄʶ±ð¹Ø¼ü×Ö
'---- 3¡¢×÷Õß ºÎֱȺ (www.wozhai.com)
Class CatchFile
        Public Overdue,Mark,CFolder,CFile '¶¨Òåϵͳ²ÎÊý
        Private ScriptName,ScriptPath,ServerHost '¶¨Òå·þÎñÆ÷/Ò³Ãæ²ÎÊý±äÁ¿
        Public CatchData        'Êä³öµÄÊý¾Ý
        Private Sub Class_Initialize        '³õʼ»¯º¯Êý
                '»ñµÃ·þÎñÆ÷¼°½Å±¾Êý¾Ý
                ScriptName=Request.Servervariables("Script_Name") 'ʶ±ð³öµ±Ç°½Å±¾µÄÐéÄâµØÖ·
                ScriptPath=GetScriptPath(false)        'ʶ±ð³ö½Å±¾µÄÍêÕûGETµØÖ·
                ServerHost=Request.Servervariables("Server_Name") 'ʶ±ð³öµ±Ç°·þÎñÆ÷µÄµØÖ·
                '³õʼ»¯ÏµÍ³²ÎÊý
                Overdue=30        'ĬÈÏ30·ÖÖÓ¹ýÆÚ
                Mark="NoCatch"        'ÎÞCatchÇëÇó²ÎÊýΪ NoCatch
                CF


Ïà¹ØÎĵµ£º

ASPÒ»¾ä»°ÇáËÉ»ñÈ¡ÓòÉϵÄÓû§Ãû

 ·Ï»°ÉÙ˵,¼û´úÂë
<%=request.ServerVariables("LOGON_USER")%>
Ê×ÏÈIISËùÔڵķþÎñÆ÷Òª¼ÓÈëÓò,Æä´ÎÊÇIIS·þÎñÆ÷µÄÉèÖÃ.¼ûͼ1
ͼ2
·þÎñÆ÷ÉèÖúúó, IISËùÔڵķþÎñÆ÷ʹÓÃ
<%=request.ServerVariables("LOGON_USER")%> 
¾ÍÄÜ»ñÈ¡µ½ÓòÃû³ÆºÍÓû§ÃûÁË.
Èç¹û·ÃÎÊÕßûÓмÓÈëÓò,»áÌáʾµÇ¼,ÈçÏÂͼ.Ê ......

AspÉî¶È½ÒÃÜ

Ò»¡¢Asp»ù±¾ÖªÊ¶
1£®AspÊÇActive Server PagesµÄ¼ò³Æ£¬ÊǽâÊÍÐ͵Ľű¾ÓïÑÔ»·¾³£»
2£®AspµÄÔËÐÐÐèÒªWindows²Ù×÷ϵͳ£¬9xÏÂÐèÒª°²×°PWS£»¶øNT/2000/XPÔòÐèÒª°²×°Internet Information Server£¨¼ò³ÆIIS£©£»
3£®AspºÍJSPµÄ½Å±¾±êÇ©ÊÇ“<%%>”£¬PHPµÄÔò¿ÉÒÔÉ趨Ϊ¶àÖÖ£»
4£®AspµÄ×¢ÊÍ·ûºÅÊÇ“'”£ ......

asp»ñÈ¡ÉÏÒ»Ò³µØÖ·µÄ·½·¨

<%
If Request.ServerVariables("HTTP_REFERER")<>"" Then
      tmpstr=Request.ServerVariables("HTTP_REFERER")
Else
     tmpstr="index.htm"
End If
response.Redirect(tmpstr)
%>
´úÂë½âÊÍ£º
Request.ServerVariables("HTTP_REFERER")ÊÇ»ñÈ¡ÉÏÒ ......

ÈçºÎÇåÀíaspÕ¾µã»º´æµÄ´úÂë

 <%
Call RemoveAllCache()
Sub RemoveAllCache()
Dim cachelist,i
Call InnerHtml("UpdateInfo","<b>¿ªÊ¼Ö´ÐÐÇåÀíµ±Ç°Õ¾µã»º´æ</b>£º")
Cachelist=split(GetallCache(),",")
If UBound(cachelist)>1 Then
For i=0 to UBound(cachelist)-1
DelCahe Cachelist(i)
Call InnerHtml("UpdateInf ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ