473,779 Members | 1,884 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Need help with displaying dynamic images in browser using ASP.NET.

I have a control that I developed that uses a custom HTTPModule to
dynamically render images to a web page using ASP.NET. It works most of the
time with one exception. For some reason, Internet Explorer does not always
display the images even though the image has been sent successfully. I
sometimes have to right click on the image and select "Show Image" and then
the image appears. This is totally random. I can refresh the screen and
then a different set of images do not show up. Some display, and some
don't. I checked my httpheaders, and everything seems right, but am not
sure why this is happening. Does anyone have any ideas?

--
-----------------------------------
Ken Varn
Senior Software Engineer
Diebold Inc.

EmailID = varnk
Domain = Diebold.com
-----------------------------------
Nov 18 '05 #1
2 1536
Hi Ken,

My first guess is that there's a proxy server or a bad cached version in the
way somewhere. Is it possible that something is keeping a non-existent
version of the image or page?

Is the browser set to get a new page every time?

Just throwing this out as an idea...

Ken

"Ken Varn" <nospam> wrote in message
news:OZ******** ********@TK2MSF TNGP10.phx.gbl. ..
I have a control that I developed that uses a custom HTTPModule to
dynamically render images to a web page using ASP.NET. It works most of
the
time with one exception. For some reason, Internet Explorer does not
always
display the images even though the image has been sent successfully. I
sometimes have to right click on the image and select "Show Image" and
then
the image appears. This is totally random. I can refresh the screen and
then a different set of images do not show up. Some display, and some
don't. I checked my httpheaders, and everything seems right, but am not
sure why this is happening. Does anyone have any ideas?

--
-----------------------------------
Ken Varn
Senior Software Engineer
Diebold Inc.

EmailID = varnk
Domain = Diebold.com
-----------------------------------


Nov 18 '05 #2
The temporary files setting in the browser is set to reload on every visit
to page. There is a proxy server on our network. If it is the proxy, is
there anyway that I can prevent this problem from happening outside of
changing the proxy settings? Like is there a header tag or something that I
can use to prevent proxy caching?

--
-----------------------------------
Ken Varn
Senior Software Engineer
Diebold Inc.

EmailID = varnk
Domain = Diebold.com
-----------------------------------
"Ken Cox [Microsoft MVP]" <BA************ @sympatico.ca> wrote in message
news:%2******** ********@TK2MSF TNGP11.phx.gbl. ..
Hi Ken,

My first guess is that there's a proxy server or a bad cached version in the way somewhere. Is it possible that something is keeping a non-existent
version of the image or page?

Is the browser set to get a new page every time?

Just throwing this out as an idea...

Ken

"Ken Varn" <nospam> wrote in message
news:OZ******** ********@TK2MSF TNGP10.phx.gbl. ..
I have a control that I developed that uses a custom HTTPModule to
dynamically render images to a web page using ASP.NET. It works most of
the
time with one exception. For some reason, Internet Explorer does not
always
display the images even though the image has been sent successfully. I
sometimes have to right click on the image and select "Show Image" and
then
the image appears. This is totally random. I can refresh the screen and then a different set of images do not show up. Some display, and some
don't. I checked my httpheaders, and everything seems right, but am not
sure why this is happening. Does anyone have any ideas?

--
-----------------------------------
Ken Varn
Senior Software Engineer
Diebold Inc.

EmailID = varnk
Domain = Diebold.com
-----------------------------------

Nov 18 '05 #3

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

Similar topics

6
2390
by: GazK | last post by:
I have an image viewing page which resizes an image to a sensible sizebefore displaying. The user should then be able to choose "25% larger" or smaller and the resized image display. The problem I am getting with the code below is that whatever the POST variable value (and I have tested the value changes correctly), the line marked with *** executes, ie the image gets smaller. Am I missing some obvious subtlety with IF statements? Also,...
2
11776
by: Srinivas Chundi | last post by:
I have to display tif images using .asp page. I have tried to read the image as a binary file and stream it to the browser. The relevant code is as follows. Unfortunately, the display on the browser is a lot of gobledygook. How can I ensure that the image displays correctly in the browser? Dim objStream Dim FilImage, FolImage, strFilImage Dim adTypeBinary adTypeBinary = 1 Set objStream = Server.CreateObject("ADODB.Stream")
17
1940
by: gsb | last post by:
HOW TO: Submit a form to PHP with no return? I need to submit a form for file upload to a PHP script but do not want anything returned. That is the TARGET for the form should be like a null device. I am using a JavaScript function to submit the form. Is there a way to do this? gsb
11
1987
by: Ian Davies | last post by:
Hello Im having problems displaying my images as thumbnails in a table. My code for producing the new width and height from the original image is as follows ************************************************** if ($ImagePath) { //$Image = WEB_ROOT . 'images/PupilTester/' . $ImagePath; $Image = 'images/PupilTester/' . $ImagePath; } else { $Image ='images/PupilTester/nopicture.bmp'; }
3
2349
by: B Maxey | last post by:
I am storing images in a database and need a way to browse those files. I can load the files into an image list or whatever the control needs, but I need a control. It doesn't seem that any of the standard window controls would work, but I am thinking I can just draw all the images on an panel (or a browser form for that matter). Does anyone have any advice?
1
1874
by: emer.kurbegovic | last post by:
Is it possible to cache dynamic images in client's browser the same way static images are cached? for example, i'd like to be able to cache this dynamic image: <img src=pic.axd?id=2the same way the browser would cache it if it would say <img src=http://someplace.com/pic.jpg> is this possible? if not, what are my choices/alternatives? thanks in advance,
11
5079
by: ra294 | last post by:
I am building a page that needs to recieve some parametes and return blank page (empty response). After I recieve the parametes I write: Response.clear Response.End When I run the page I still get some html when doing "view source" in IE: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD>
4
1664
by: group8perl | last post by:
I have a Perl script which also has some HTML. I managed to get the images to display on explorer using Apache but when using Linux and Firefox the images are not displayed. When using right click properties it knows the location of the images but it is not displaying them. Any help would be appreciated. Thank You
0
14803
docdiesel
by: docdiesel | last post by:
The fastest (and cheapest) transfer of data is that which doesn't have to be done - because the data is already there. Or still there - the caching of files is widely known and practised. Each web browser is caching the files he formerly requested from the web server. But if the file is to be loaded a second time, still a request is sent to the web server which then usually is answering with a "304 Not modified" as can be seen in his access...
0
9632
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9471
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10136
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9925
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8958
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6723
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5372
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4036
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3631
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.