Global.asa - ASP counter
Jeg er i gang med en lille hjemmeside og vil gerne sætte en counter op... (selvlavet self.) Men jeg har problemer med at få den til at skrive noget some helst på .htm-siden jeg har sat dette ind:<%response.write(Application("alluser"))%>
-for at referere til glabal.asa som ser sådan ud:
<script language="vbscript" runat="server">
Sub Application_OnStart
Application("alluser")=0
End Sub
Sub Session_OnStart
Application.Lock
Application("alluser")=Application("alluser") +1
Application.UnLock
End Sub
Sub Session_OnEnd
Application.Lock
Application("alluser")=Application("alluser") -1
Application.UnLock
End Sub
</script>
Hvad går der galt?
