Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Image in datagrid not refreshing

Reply
Thread Tools

Image in datagrid not refreshing

 
 
kaczmar2@hotmail.com
Guest
Posts: n/a
 
      07-28-2005
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

 
Reply With Quote
 
 
 
 
Bruce Barker
Guest
Posts: n/a
 
      07-28-2005
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: 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
>



 
Reply With Quote
 
 
 
Reply

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
Refreshing image box with new image Dev Javascript 1 01-26-2009 10:35 AM
Image Control not refreshing Mark Denardo ASP .Net 6 10-22-2006 12:18 AM
Self-refreshing and non-self-refreshing controls Harlan Messinger ASP .Net 1 08-04-2006 01:13 PM
Self-refreshing and non-self-refreshing controls Harlan Messinger ASP .Net Web Controls 0 08-03-2006 12:29 PM
Atlas and asp.net Image control not refreshing (firefox fails, IE6 works) PeterKellner ASP .Net 0 06-01-2006 09:19 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57