469,625 Members | 1,085 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,625 developers. It's quick & easy.

Image in datagrid not refreshing

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

Nov 19 '05 #1
1 1026
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)

<ka******@hotmail.com> wrote in message
news:11*********************@g47g2000cwa.googlegro ups.com...
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

Nov 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by msnews | last post: by
1 post views Thread by James | last post: by
1 post views Thread by aliansari | last post: by
reply views Thread by Jeronimo Bertran | last post: by
6 posts views Thread by =?Utf-8?B?TWFyaw==?= | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.