I have a chart control that I developed. It creates the chart based on each person login info, save it to the disk, and sends an image tag in its render method back to the main page:
something like <image src="newimageid.gif" > ..
The problem is, sometimes, the pages get rendered, there is image placeholder in the rendered page, but the image does not show. Sometimes, it show, sometimes it does not. If i hit refresh, it shows up. somtimes ihave to hit refresh 2/3 times before it finally shows up.
can someone please shed somelight on it as to what might be going on ?
One possible solution I am looking at is, if somehow i can stream the image back to the main page. I have been able to do that when the final page has nothing else but the image, but when it has other stuff also (like proper html tags etc), the image comes as garbage data.
can anyone please give me some idea regarding this? how an image can be sent back to the page instead of being saved on the hard disk when the main page has other data also? or give me some idea why images do not show up unless you hit refresh? and what could be a possible solution to that?
Thanks
Ali