Actually I am looking to show an image in my div by calling a function of code behind file. Since my image tag is dynamically binding from JavaScript, how can I call a function with parameter. Below is the code which I used to call, but its not working, even its not hitting the function in debug mode.
document.getElementById("divthumbnail").innerHTML = '<img src="'<%=test()%>'"/>';
So, how can I modify this code, to get an image URL?