I implemented a PartialView Load but the (img tag) is not displayed an image. There was no error and the alt="IMAGE" was displayed instead.
Home/Index.cshtml
<div id="partialviews">
</div>
<script type="text/jscript">
$(document).ready(function () {
$("#partialviews").load('/home/GetImage');
});
</script>
Home/HomeController.cs
public PartialViewResult GetImage(string category)
{
return PartialView("_ShowImage");
}
_ShowImage.cshtml
<div>
@Html.Label("Image:")
@{ var imagePath = @"~/Images/cctv.jpg"; }
<div>
<img scr="@Url.Content(@imagePath)" alt="IMAGE" />
</div>
</div>