I have the next line in my javascript file:
"<img alt=\"Active\" src=\"@Url.Content(\"~/Images/play.png\")\" />"
so I tried to do what AHM
suggested in this topic (@Url.Content in separate javascript file using ASPNET MVC 3 and Razor):
var ROOT = "@Url.Content(\"~/";
"<img alt=\"Active\" src=\"" + ROOT + "Images/play.png\")\" />"
but I got an error:
Reports/@Url.Content( 404 (Not Found)
what I did wrong?
any help appreciated!