Image in datagrid not refreshing

Discussion in 'ASP .Net' started by kaczmar2@hotmail.com, Jul 28, 2005.

  1. Guest

    I have an image in a in one column of my datagrid, along with other
    data. During the edit, a file control is loaded so the user can edit
    data and specify a new image, if needed. Everything works just fine,
    and the data is refreshed in the grid after an edit, but if a new image
    has been chosen by the user, on postback, the old image still shows
    until the user manually refreshes the browser. How can I get this
    image to refresh after the update (I am already rebinding the data
    after the update.

    Thanks,

    Christian
     
    , Jul 28, 2005
    #1
    1. Advertising

  2. Bruce Barker Guest

    the browser caches images. if you map images to asp.net, you can write a
    filter to update the headers to send a do not cache header. the best bet is
    to use a unique name for each image.

    -- bruce (sqlwork.com)

    <> wrote in message
    news:...
    >I have an image in a in one column of my datagrid, along with other
    > data. During the edit, a file control is loaded so the user can edit
    > data and specify a new image, if needed. Everything works just fine,
    > and the data is refreshed in the grid after an edit, but if a new image
    > has been chosen by the user, on postback, the old image still shows
    > until the user manually refreshes the browser. How can I get this
    > image to refresh after the update (I am already rebinding the data
    > after the update.
    >
    > Thanks,
    >
    > Christian
    >
     
    Bruce Barker, Jul 28, 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. PeterKellner
    Replies:
    0
    Views:
    620
    PeterKellner
    Jun 1, 2006
  2. Harlan Messinger

    Self-refreshing and non-self-refreshing controls

    Harlan Messinger, Aug 4, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    486
    =?Utf-8?B?Y2xpY2tvbg==?=
    Aug 4, 2006
  3. Mark Denardo

    Image Control not refreshing

    Mark Denardo, Oct 20, 2006, in forum: ASP .Net
    Replies:
    6
    Views:
    425
    Mark Denardo
    Oct 22, 2006
  4. Harlan Messinger

    Self-refreshing and non-self-refreshing controls

    Harlan Messinger, Aug 3, 2006, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    216
    Harlan Messinger
    Aug 3, 2006
  5. Dev
    Replies:
    1
    Views:
    135
    Erwin Moller
    Jan 26, 2009
Loading...

Share This Page