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. Advertisements

  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. Advertisements

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. Mike Szanto
    Replies:
    1
    Views:
    614
  2. Sunit Joshi

    Image control does not refresh

    Sunit Joshi, Oct 30, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    658
    Suresh
    Oct 30, 2003
  3. Don
    Replies:
    3
    Views:
    1,126
    Teemu Keiski
    Jul 9, 2004
  4. Fred Geurtsen

    Datalist does not refresh

    Fred Geurtsen, Jan 4, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    516
    John Saunders
    Jan 4, 2005
  5. hibiki
    Replies:
    2
    Views:
    602
    hibiki
    Apr 13, 2005
  6. =?Utf-8?B?TUo=?=

    Image Not Refresh

    =?Utf-8?B?TUo=?=, Oct 24, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    416
    Eliyahu Goldin
    Oct 24, 2006
  7. =?Utf-8?B?TWlybw==?=

    Refresh image in asp:Image-control

    =?Utf-8?B?TWlybw==?=, Feb 27, 2007, in forum: ASP .Net
    Replies:
    6
    Views:
    1,009
    Joerg Jooss
    Feb 27, 2007
  8. Phi!
    Replies:
    1
    Views:
    367
Loading...