"Seb" <a@a.frwrote in message
news:47***********************@news.free.fr...
Hello,
Is there the IsPostBack command in ASP (not ASP.net) ?
Or How can I detect a refresh in a ASP page ?
Will something lke this work for you?
It uses Session variables to identify the current page
and its counter.
Create "refresh1.asp" then copy it to "refresh2.asp"
and change the value of "cASP" to "refresh2.asp".
Call it via http://{your domain}/refresh1.asp then
click the links and watch the page+counter display.
Clicking "Refresh" will increment the counter as well.
<%@ Language="VBScript" %>
<% Option Explicit
Const cASP = "refresh1.asp"
If Session("ASP") <cASP _
Or Session("CTR") = "" Then
Session("CTR") = 0
Else
Session("CTR") = Session("CTR") + 1
End If
Session("ASP") = cASP
%>
<html>
<body>
<%=Session("ASP")%: <%=Session("CTR")%>
<hr>
<a href="refresh1.asp">1</a| <a href="refresh2.asp">2</a>
</body>
</html>