img src in HtmlImage is not always diplayed

A

Alberto

Hi,

I am having a strange problem when using the HTMLIMAGE control.

I have a aspx page that contains the htmlimage control (explore.aspx).
I generate an <img src=...> tag, with a URL that points to another
aspx
page (with some parameters, say
create.aspx?objid=2491618830345830579). In the aspx I read an image
from the database (based on the objid). I then set the appropriate
ContentType (say "image/jpeg") and use Response.BinaryWrite to write
the data.

Most of the time this works just fine. However, some times the image
does not appear and a broken icon appears in the control on the
explore.aspx page.
Calling the page that set the img src property of the control (i.e.
create.aspx?objid=2491618830345830579 works just fine).

This is really a problem for me. Any ideas on what's going on?
The explore page is a rather complex page containing 5 htmlimage
controls. All images are retrieved from a sql server database.

Any ideas?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,756
Messages
2,569,533
Members
45,007
Latest member
OrderFitnessKetoCapsules

Latest Threads

Top