You can get the last page the user visited from a server
variable. I can't remember what it's called. Use this code
to loop through all the server variables...
Function GetSrvVariables() as String
Dim retString as String
Dim loop1, loop2 As Integer
Dim arr1(), arr2() As String
Dim coll As NameValueCollection
coll=Request.ServerVariables ' Load ServerVariable
collection into NameValueCollection object.
arr1 = coll.AllKeys ' Put names of all keys into a string
array.
For loop1 = 0 To UBound(arr1)
retString = retString & arr1(loop1)
arr2 = coll.GetValues(loop1) ' Get all values under this
key.
For loop2 = 0 To UBound(arr2)
retString = retString & ": " & arr2(loop2) & "<br>"
Next loop2
Next loop1
I dont think that a roubd trip to the server required. use Javascript :
window.history.back();
Natty Gur, CTO
Dao2Com Ltd.
34th Elkalay st. Raanana
Israel , 43000
Phone Numbers:
Office: +972-(0)9-7740261
Fax: +972-(0)9-7740261
Mobile: +972-(0)58-888377
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.