In my MVC application, the images will be in the App_Data folder. I want to provide a source for my img tag in jQuery. Here is how I do it:
var src1 = <%=Url.Content(Server.MapPath("/AppData/1.jpg"))%> $("#imgLocation").attr("src", src1);
But that will not work. Why?
source share