Image does not refresh

Discussion in 'ASP General' started by Oded, Jan 12, 2005.

  1. Oded

    Oded Guest

    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.....
    Thanks
     
    Oded, Jan 12, 2005
    #1
    1. Advertising

  2. Maybe this can help:

    Response.Buffer = True
    Response.Expires = -1000
    Response.CacheControl = "no-cache"
    Response.AddHeader "Pragma", "no-cache"
     
    Gérard Leclercq, Jan 12, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. brian lanning
    Replies:
    0
    Views:
    604
    brian lanning
    Jul 29, 2003
  2. Sunit Joshi

    Image control does not refresh

    Sunit Joshi, Oct 30, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    588
    Suresh
    Oct 30, 2003
  3. Per Magnus L?vold
    Replies:
    1
    Views:
    5,137
    John C. Bollinger
    Oct 8, 2004
  4. =?Utf-8?B?TWlybw==?=

    Refresh image in asp:Image-control

    =?Utf-8?B?TWlybw==?=, Feb 27, 2007, in forum: ASP .Net
    Replies:
    6
    Views:
    790
    Joerg Jooss
    Feb 27, 2007
  5. Pkenty
    Replies:
    0
    Views:
    400
    Pkenty
    May 28, 2004
Loading...

Share This Page