in JS I have this code:
var trade ="some text";
var id = 12;
var script = "<img src='"+<%=GetImageURL(id, "~/images/default.jpg") %>+"'
alt='"+trade+"' width='180' />";
I want to call the method GetImageURL with my variable id, but I can't, because this variable is from JS.
How call GetImageURL with value of id from JS?