I asked a similar question before but the response was pretty weak, so not sure if I worded it correctly.
I currently have a custom server control on an asp.net page. However the control uses entirely embedded JavaScript and Image resources. My assembly has all of the web resources correctly set-up and I have been using the images etc as icons sucessfully.
However now, if possible I would like to use the embedded webresource images directly in the javascript file. I have tried the following with no luck so far:
document.getElementById('button').src = 'WebResource("NAMESPACE.FOLDER.IMAGE.png")';
document.getElementById('button').src = '<%WebResource("NAMESPACE.FOLDER.IMAGE.png")%>';
I am not sure what else to try as most of my googling seems to meet a dead end.
Thanks in advance.