Ver Mensaje Individual
  #7 (permalink)  
Antiguo 17/06/2002, 14:58
pumuky
 
Fecha de Ingreso: mayo-2002
Mensajes: 82
Antigüedad: 23 años
Puntos: 0
Re: Contador de visitas

A ver, si no quieres usar Una tabla para ello prueba de esta manera, no sé pq no te funciona la otra:

En el GLOBAL.ASA
<script laguage="vbscript" runat="server">

Sub Session_onStart
End Sub

Sub Session_OnEnd
End Sub

Sub Application_OnStart
Application("visitas")= 0
End Sub

Sub Application_OnEnd
End Sub

</script>

Ahora en INDEX.ASP

<Html>
<head>
<title>Ejemplo contador de visitas</title>
</head>

<body>
<% application("visitas")= Application("visitas")+1%>

<b>Contador de visitas:<%=Application("visitas")%&gt ;</b>

</body>
</html>

Esto sí q debería funcionar, si no es así avisa.

Suerte