I use this code in a agent to check existing records…when i run this it says Page expired. How can i overcome thisRegards
Shana
If n>=1 Then
Print "<script language='JavaScript'>" Print "{" Print "alert ('ID already exists !');" 'Print "history.go(-1);" Print "javascript:history.go(-1);" Print "}" Print "</script>" Exit Sub
end if
Subject: history.go(-1) Problem…
There’s no general way to overcome this. history.go(-1) works just like the back button of the browser. Depending on the last request and server response, the previous page may or may not be available.
Check out this blog entry for some more details:
http://www.codestore.info/store.nsf/unid/BLOG-20071011