I'm currently trying to display an image in my div by calling a function from the code behind file. The image tag is dynamically bound with JavaScript, but I'm having trouble figuring out how to call a function with parameters. The code snippet I've tried below isn't working and doesn't even hit the function in debug mode.
document.getElementById("divthumbnail").innerHTML = '<img src="'<%=test()%>'"/>';
Can someone help me modify this code so that I can successfully get the image URL?