Last post Jan 06, 2009 06:17 PM by emsomeone
Dec 19, 2008 01:59 AM|emsomeone|LINK
Good day! I am having troulble with Dynamic image loaded from memory. I have a datagrid with images. The images comes from the database. The process is under the page_load event inside a checking if not page.ispostback. The images do show on the first load
and property "src" has a value of "cachedimageservice.axd?data=key" . Now when the page postback due to a seperate event the images in the datagrid are gone and I notice when i view the source code the "src" property is blank.
I could re bind the datagrid but that will be ineffecient. Is there any work around for this issue?
Dec 21, 2008 09:09 AM|Nai-Dong Jin - MSFT|LINK
From your descriptoin, the fact is that you have to re-bind your image controls and assign the src attributes. Generally you can add a method which specially for assigning the src attribute. At the pageload event, you can call this method inside a checking
if not page.ispostback. And then, in other event handler, you can call that method explicitly to make sure that all images' src attributes should be assigned.
Jan 06, 2009 06:17 PM|emsomeone|LINK
Thanks for your reply. So it is a bug and my only option is rebind the grid?