User-1221966532 posted
Hiya,
I have created a grid webcontrol, simple and general using embedded images from code behind ( ClientScriptManager ) and also from CSS as background-image property. Now while the images referenced from code behind are fine, for some reason the images
for the CSS background-image property are not rendered or find. The images are flagged as embedded, the WebResource path is ok in the AssemblyInfo, the CSS is also flagged as embedded resource and the CSS property is like below:
background-image:url('../Images/GridHeaderBackground.jpg');
I suspect that this is due the embedded webresource issue, but how could I pass the embedded image's url in the CSS file, like in the code behind:
this.Page.ClientScript.GetWebResourceUrl(GetType(), "WebControls.Grid.Images.SinglePlus.gif");
I thought that the normal way of url path is enough in the webcontrol, when using the background-image property. Can someone answer this question?
Thanks
Ben