473,401 Members | 2,127 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,401 software developers and data experts.

.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(images\horizontal_middle.gif);
}
BODY
{
background-image:url(images\topBack.png);
background-repeat:no-repeat;
background-position:50% 0%;
font-family:Arial;
background-color:#F5FFFA;
}
H1
{
color:White;
text-align:center;
position:relative;
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(Downloading 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 1483
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(Downloading Picture.....)" at the bottom of the
screen.

What gives? Anyone know how to stop this bottleneck?


Unless you're serving your CSS programmatically (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********@joergjooss.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********@joergjooss.de
Jan 25 '06 #5

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

Similar topics

16
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"...
3
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...
3
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...
12
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...
2
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')...
5
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...
8
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...
4
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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,...
0
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...
0
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.