[thelist] Strange problem with ASP (random)

Warden, Matt mwarden at mattwarden.com
Sun Jan 20 01:18:07 CST 2002


On Jan 20, Chris Anderson had something to say about [thelist] Strange...

>Hey everyone,
>
>Im having the strangest problem with ASP, and am hoping that someone in here
>can help shed some light on this for me.
>
>Anyway, if you look at www.photokyo.com and refresh the page, you can see
>that on the right side where the bookstore is, it brings up a random image
>each time you refresh.  It works!
>
>Where the problem lies is on the other pages.  They always bring up the same
>darn image, no matter how many times you reload it.  Its only on the main
>page where its bringing up different images each time.
>
>I am using an include for that part, so its the exact same code on the main
>page as it is on the other pages, so thats why it doesnt make sense to me.

well, are you spitting out html like this:

<img src="radomimage.asp">

??

if so, you need to add some random querystring after the filename or else
you'll have caching problems.

if not, are you getting the exact same html for that image tag each
time? like:

<img src="radomimage1.gif">

??

if so, you probably need to look at how you're generating the image
filename. i'd need to see your code.

hth,

--
mattwarden
mattwarden.com





More information about the thelist mailing list