Image

Imagealissamarie wrote in Imagewebdev

Okay, folks . . .

Let me start off by saying I'm a PHP and ColdFusion programmer, and I only have about a month's worth of experience coding ASP.NET/VB.

Anyhow, I am writing a Facebook sort of application. It's basically to allow people to upload their picture and search for other people's pictures (think Orkut or Friendster, without the "friending" feature - kinda).

So, here's my problem. I have written the script to upload the image properly to the directory and put the image name in the database, and everything works fine, yadda yadda. However, the browser caches the image and I cannot figure out a way to get the page to reload the picture aside from manually. I thought about putting the window.location.reload() in the onload event of the image, or the page, but that just results in it reloading over and over and over again. Putting it in the onClick handler for the upload button doesn't help any, since the image is written to the screen a while after that's clicked.

Is there an ASP.NET way to do this? Am I missing something obvious? It's driving me buggy and I've googled an awful lot trying to figure it out . . .

Thanks much.