一聚教程网:一个值得你收藏的教程网站

热门教程

Using SOAP from inside ASP,maybe helpful for you!

时间:2022-06-30 09:25:50 编辑:袖梨 来源:一聚教程网

default.asp
------------------------------------------------------------------------
<%@ Language=VBScript %>
<%Option Explicit%>

>




<%
Dim     ASPNETResources    
If len( Application("ASPNETResourceList") )>0 then    'we have our latest resources
    REM -- check to see if they expired
    If DateDiff("h",Now(),Application("ASPNETResourcesUpdated")) > Application("ASPNETExpires") Then    
        REM -- we need to update the latest resurces
        ASPNETResources = GetASPNetResources()
        Application.Lock
        Application("ASPNETResourcesUpdated")=Now()
        Application("ASPNETResourceList")=ASPNETResources
        Application.UnLock
    End if 'datediff...
Else    'for some reason the application level variable is empty, fill it.
    ASPNETResources = GetASPNetResources()
    Application.Lock
    Application("ASPNETResourcesUpdated")=Now()
    Application("ASPNETResourceList")=ASPNETResources
    Application.UnLock
End if 'len(..
Response.Write     Application("ASPNETResourceList")
%>

热门栏目