Is there a way to reverse the order of the messages displayed? I'd like the newest ones on top, instead of the other way around.
Unfortunately this is harder then it should be...
at least if you want to continue to use a text file
to store your entires.
There's really no easy way to add new entries to the
top of the text file. You'll need to open the existing
file, read it's contents into memory, clear out the file,
insert the new comment into the empty file, and then
place the old comments after it. This is not really that big
a deal, but it's quite a bit more complex then just appending
to the end of the file and there's more chance for something
to go wrong.
You could also change the order when you display the
guestbook, but this is more work. It would also be
harder on the server (assuming the guestbook is displayed
more often then signed.
So the long and the short of it is... it can be done, but
it makes everything more complex. If there's enough
interest, I'll be happy to write the script...
send a request.
I keep getting a Server.CreateObject Failed error but it says "The operation completed successfully". What's going on?
This is most often caused by the IUSR_{machine_name} NT account not having the appropriate NTFS permissions to access the file you're trying to open. You need to let the anonymous internet user have read, write, and delete access to the guestbook data file.
Why are the entries in my guestbook being deleted every day?
This is what happens when you cut and paste code and don't read the comments :)
Const bDeleteEntries = True
' This is used to control whether or not we empty the guestbook at
' the first hit after midnight. We do it just to keep the list
' short. You'll probably want to set this to False
Please note: This form is only for submitting questions about the sample for us to consider including in the FAQ. If we feel the question merits inclusion, we will include it along with a reply. We will not respond to your email individually.