View Full Version : Image flickering in asp.net menu control
lee2006
06-04-2007, 12:27 PM
Hi there I have only just noticed this problem when opening my site in IE 6
All other browsers are fine
I have an asp.net menu control that uses a menu adapter to render as a list rather than a table. got the tutorial form www.asp.net (http://www.asp.net)
This all works fine and have had no problems
BUT I have noticed that in IE 6 when you hover over the menu item the image set as the background for the menu item flickers, this is wiered as the image does not change on mouse over, only the link underlines.
If i refresh the page there is no flickering anymore, but if i click a link when the page has loaded the flickering comes back on mouse over the menu unless i refersh again.
I have read loads of info from google on this but no one actuly covers how to fix it in ASP.NET usign VB as code.
Anyone have an ideas i am stumpt, shuryly other people have the same problem.
Anymore info just ask
Thanks
Lee
Carl Shepherdson
06-04-2007, 01:11 PM
Might be worth posting a link to your site.
Ben Collier
06-04-2007, 01:22 PM
Might be worth posting a link to your site.
yeah i was going to ask for a link! You'll find the solution is most probably irrelevant of the language used, as it is more likely to be in the source view not the code view. So try looking for solutions without being code specific (i.e. don't include vb in your search). You may also find it is not specific to asp.net, so try just a general search aswell!
Goodluck
Ben
lee2006
06-04-2007, 01:36 PM
Hi there
Apparently it is a bug in ie 5 and 6, works fine in 7
its because ie 5 and 6 load the css images allocated to the menu evry time the mouse hovers over the menuitem rather than caching them
Im not expert on this just what I have read
The problem is that all the solutions I have found invlove seting the cache setting in IIS which of course i do not have access 2
Appently ie 5 and 6 do not cahce images unless told 2
Anyone know if this can be done in code
Or how i can force the images to cache for ie 5 and 6
The realy wiered thing I have just noticed is when i upload my site to the web server there is nomore flickering
This poses the question does anyone know if caching of images is enabled on csnewmedia web servers, in which case it is my computers iss settings or does it just work cause i have a fast broadband conection and will the problem show on slower connections
I know this is alot to ask but I just dont understand
Thanks all
Lee
Ben Collier
06-04-2007, 01:57 PM
Sadly Javascript saves the day again:
http://www.mister-pixel.com/#Content__state=is_that_simple
Ben Collier
06-04-2007, 01:59 PM
but only in IE6 SP1...
lee2006
06-04-2007, 03:03 PM
Thanks for all the help
Can anyone from csnewmedia tell me if caching is enabled on there server
As this seems to be why it works fine over the web but not when tested localy
Thanks again ben
Lee
Carl Shepherdson
06-04-2007, 03:27 PM
Hi,
What sort of caching? There are many types of caching on a server, any decent server software will cache a lot of data.
lee2006
06-04-2007, 08:12 PM
Hi carl
Im not 100% shure I was looking into image flickering with IE5 and 6
The problem has been fixed in 7 and only shows in 5 and 6
The remerdey for the problem apparently is setting caching for IE on the server, I have not looked into it as of course I dont have access to your servers IIS.
The only reason I asked was because when i run my site through visual studios virtual server the images flicker, so I spent ages looking for a fix and they said it was due to inetrenet explorer 5 and 6 not caching images automaticly and reloading them each time they are required.
Changing the setting on the server was the fix
But when I uploaded my site to your servers, theer is no more flickering, not that I have noticed on testing as of yet, anyway.
I just wondered if IE cahcing was enbabled or wther it is just that I have hi speed broadband and if I run it on a slower connectionif the flickering will reapear
As i do not have access to a slower connection with IE 6 installed, I thought id ask
Sorry I coant tell you more I have never cam acroos this before
Hope this helps
Lee
Carl Shepherdson
06-04-2007, 11:29 PM
I can't think of anything on the servers that would cause such a problem.
vBulletin® v3.7.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.