Last post Jun 28, 2009 07:26 AM by ihsany
Jun 26, 2009 09:25 AM|benjib98|LINK
I have created a custom web control which uses embedded images via an embedded style sheet, so both images and the stylesheet are part of the web control dll. The image is applied in the style sheet as following:
and the images and StyleSheet is added as the WebResource attributes in the AssemblyInfo, the StyleSheet flagged as PerformSubstitution = true
There is a funny thing going on, when the page is first loaded: the actual image is not "loaded" only until I hover the mouse over the actual image placeholder, in my case a div tag. The image is used as a header background colour and if i have many instances
of a div having this image, it is enough to hover the mouse over one of the div instances and then suddenly the image is appears in all placeholders. Is this just the way WebResource works or I am doing something wrong?
Jun 28, 2009 07:26 AM|ihsany|LINK
right click embed image and click properties;
set build action to Embedded Resource
set copy to output to Copy id newer
i hope this help you..