473,383 Members | 1,821 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

img src in HtmlImage is not always diplayed

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?
Nov 18 '05 #1
0 864

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: CodeRazor | last post by:
I am building my html page in .net. After i click a button, i want an outline/border to appear around my button. I have found the HtmlInputImage.Border property and although it prints out...
0
by: J | last post by:
Hi all, I've got a problem with a HtmlImage I'm adding to a TableCell object. What I'm trying to do is add an attribute to the image like this; oHtmlImage.Src =...
2
by: David | last post by:
I have been trying to use an HtmlImage inside a Panel in an ASP.NET application. I discovered that text dynamically generated by the client persists inside the Panel across round trips but...
3
by: RKT | last post by:
(CSharp, NET2.0) Is there any way to EITHER: 1. Programmatically add a server onclick() event hander to the 'HtmlImage' HtmlControl control? OR 2. Programmatically preempt a 'Image'...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.