I'm trying to display an image for which the path is stored in the model.
The absolute path stored in the model maps to the physical path on the storage.
This works:
$("#uploadresults").prepend('<img src="../../Uploads/_MG_9806.jpg" alt="" />');
However this doesn't work:
$("#uploadresults").prepend('<img src= "'+@Url.Content(Model.ImageUrl) +'" alt="Image" />');
Model.ImageUrl = "C:\Users\Emad\Documents\Visual Studio 2013\Projects\projects_notworking\MarketSurvey\MarketSurvey\Uploads\_MG_9806.jpg"
It appears that in my view, I can only use relative paths to get it to work. Is there a way to convert my physical path to a relative path?