Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Image does not refresh

Thread Tools

Image does not refresh

Posts: n/a
Hi all,
I have an ASP page which allows image uploading. When uploading is finished
an image tag is refreshed to display the new image. It works well for the
first upload, but does not refresh in other uploads, unless a substantial
amount of time passes without viewing the image. I guess it has somthing to
do with caching, but don't know how to solve it.
If anyone has any ideas, it will be a big help.....
Reply With Quote
Gérard Leclercq
Posts: n/a
Maybe this can help:

Response.Buffer = True
Response.Expires = -1000
Response.CacheControl = "no-cache"
Response.AddHeader "Pragma", "no-cache"

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Refresh image in asp:Image-control =?Utf-8?B?TWlybw==?= ASP .Net 6 02-27-2007 09:48 PM
JSP: Session parameters vanish on refresh. How do I keep them on refresh? Per Magnus L?vold Java 1 10-08-2004 02:52 PM
How do i refresh a datagrid from a pop up window without having to refresh the whole page? Pkenty ASP .Net Web Controls 0 05-28-2004 07:06 AM
Image control does not refresh Sunit Joshi ASP .Net 1 10-30-2003 08:24 PM
Problem with refresh button breaking automatic refresh brian lanning ASP .Net 0 07-29-2003 07:57 PM