473,769 Members | 6,926 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

.NET 2.0 image load issues

Roy
Hey all,
I just installed 2.0 today. I've been enjoying 1.1 for so long I didn't
want to change. :)
Anyways, I converted over a web project from 1.1 to 2.0. No problemo.
Then I noticed something very bizaare. Here's my short and simple CSS
code:

SPAN, #lblSailDate
{
width:100px;
text-align:center;
border:none 0px;
background-image:url(image s\horizontal_mi ddle.gif);
}
BODY
{
background-image:url(image s\topBack.png);
background-repeat:no-repeat;
background-position:50% 0%;
font-family:Arial;
background-color:#F5FFFA;
}
H1
{
color:White;
text-align:center;
position:relati ve;
font-family:Times New Roman;
}
#scrolling_div
{
height:70%;
overflow:auto
}

Basically, the web page displays a Repeater within a DIV with the
#scrolling_div attributes above. The Repeater contains a series of
SPAN's (which use the attributes above as well). My question lies in the
repeating of the background image in the SPAN's. The background image is
a simple 1kb image that is tiled. In 1.1 the page loaded very rapidly. I
believe that the 1kb image was sent ONCE and only once, then tiled on
the client side.

What's happening in 2.0 is that the 1kb image is sent EVERY SINGLE TIME.
Meaning it's loaded from the server every time it's tiled. Which in my
case, means about 5000 times. I'm getting really tired of seeing "3162
Items Remaining(Downl oading Picture.....)" at the bottom of the screen.

What gives? Anyone know how to stop this bottleneck?

TIA

*** Sent via Developersdex http://www.developersdex.com ***
Jan 24 '06 #1
4 1509
Hello Roy,
Hey all,
I just installed 2.0 today. I've been enjoying 1.1 for so long I
didn't
want to change. :)
Anyways, I converted over a web project from 1.1 to 2.0. No problemo.
Then I noticed something very bizaare. Here's my short and simple CSS
code: [...] Basically, the web page displays a Repeater within a DIV with the
#scrolling_div attributes above. The Repeater contains a series of
SPAN's (which use the attributes above as well). My question lies in
the repeating of the background image in the SPAN's. The background
image is a simple 1kb image that is tiled. In 1.1 the page loaded very
rapidly. I believe that the 1kb image was sent ONCE and only once,
then tiled on the client side.

What's happening in 2.0 is that the 1kb image is sent EVERY SINGLE
TIME. Meaning it's loaded from the server every time it's tiled. Which
in my case, means about 5000 times. I'm getting really tired of seeing
"3162 Items Remaining(Downl oading Picture.....)" at the bottom of the
screen.

What gives? Anyone know how to stop this bottleneck?


Unless you're serving your CSS programmaticall y (e.g. using a HttpHandler),
this has nothing to do with ASP.NET. The file is served directly by IIS.

Is that image accidentally configured to be non-cacheable?

Cheers,
--
Joerg Jooss
ne********@joer gjooss.de
Jan 24 '06 #2
Roy
Hi Joerg,
Thanks for the reply. I'm going to admit my ignorance on this matter.
How can I tell if an image is "non-cacheable"? I'm going to research
cacheing in 2.0, but if you get to this email before I figure it out,
please point me in the right direction! Thanks!

*** Sent via Developersdex http://www.developersdex.com ***
Jan 25 '06 #3
Roy
Very bizaare, but I've got the solution (I think). For whatever reason,
the behavior I've mentioned occurs only when running the site in Visual
Studio 2005. When the site is actually published it runs fine.

Back to the grindstone with me.

*** Sent via Developersdex http://www.developersdex.com ***
Jan 25 '06 #4
Hello Roy,
Hi Joerg,
Thanks for the reply. I'm going to admit my ignorance on this matter.
How can I tell if an image is "non-cacheable"? I'm going to research
cacheing in 2.0, but if you get to this email before I figure it out,
please point me in the right direction! Thanks!


It's a web server specific feature. IIS for example allows you to attach
custom HTTP headers to all files located in one folder, whereas iPlanet can
apply them to files based on regular expressions. If you' re using a standard
installation of IIS on your XP box, no caching headers will be attached by
default.

Cheers,
--
Joerg Jooss
ne********@joer gjooss.de
Jan 25 '06 #5

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

Similar topics

16
6200
by: Donjuan | last post by:
Hi all I have trouble with tracking whether my image file is loaded. i use DHTML to change my image. HERE is the code: <img name="someimage" src="1.jpg" onclick="document.all.someimage.src='someimage.jpg"> but how can i determine whether "someimage.jpg" is loaded? and can i get the download percent of a file? Thanks in advance
3
6166
by: Randell D. | last post by:
Folks, I'm still learning javascript - I've invested in a couple of books and reading online as much as possible. I'm pretty sure what I am suggesting is possible though I'm trying to weigh up the faults that might go with the suggestion... all opinions welcome. My question: I have a list of links that go to pages that have a similar layout. Could I have a text swap, similar to what I've seen with image swaps (or an image switch)...
3
3017
by: Scott Simonson | last post by:
I have had an application in MSAccess 2k for about year now without issues until recently. My users were using it in W98 without issue, but recently moved to WindowsXP and now are getting an error. It is with the standard image control while loading a TIF image. Loading these TIFs in W98 works but not in WindowsXP. Does anyone know what is happening here? How to get around this? *************** The error is: Run-time error '2114'
12
6190
by: Sharon | last post by:
I’m wrote a small DLL that used the FreeImage.DLL (that can be found at http://www.codeproject.com/bitmap/graphicsuite.asp). I also wrote a small console application in C++ (unmanaged) that uses the DLL above. Now the application, together with the above DLL’s is successfully loading a TIF image file (62992 x 113386 Pixels, Huffman RLE compression, 3200 x 3200 DPI resolution, binary colored (1 Bit Per Pixel), file on disk size 43.08...
2
7521
by: reynardmh | last post by:
I tried to change the image.src on the fly when the user click a link. But for some reason it does not work in IE 6 (the image just disappear when I click the link), but if I add the alert('test') line on the change_pic function it works in IE. it's like IE just didn't refresh the display with the new image. Btw, the code works fine on Firefox 1.5.0.4 and Opera 8.52 Here is the simplified code: <script type="text/javascript">
5
2312
by: =?Utf-8?B?VW1lc2huYXRo?= | last post by:
Hi, How can I load a image stored in SQL server database in ASP.NET page. I have used Response.BinaryWrite but it loads in a new page .I want to load in a part of my aspx page or in a control (image etc). Is it possible to load in any grid control? Thanks in advance Umeshnath V.G.
8
2383
by: JJ | last post by:
Whilst I am resizing images I am losing quality. This is only happening in small amounts, but if you repeatedly put the same image through the following code, the image quality slowly degrades. Can anyone spot why this may be happening? Should it only deteriate once upon intitially going through this procedure? The deterioration is subtle, but after a few iterations is quite noticeable..: private static System.Drawing.Image...
4
13983
Airslash
by: Airslash | last post by:
Hello, been a while since I visited bytes.com, but I have an issue with GDIplus... I'm currently developing on/for a Windows Server 2003 system and I'm running a Benchmark to find the fastest and most performent way of resizing a jpg file from MegaPixel format to 640 * 480 size. Gdiplus currently offers the fastest way for me with a result of 3ms / resize. I am however recieving random Access Violations exceptions and the small tool...
0
9589
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
9423
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
8873
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
6675
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
5309
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...
0
5448
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3965
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
3565
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2815
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.