Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I am trying to render an image that is in the Media Library. However using
<img src="@Model.Value("carouselImage1")" />
Does not work. How do I get the Url of the image?
Please try following:-
var image = Model.Value<IPublishedContent>("carouselImage1");
<img src="@image.Url" />
Hope this solves your issue.
Excellent, Thank you.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted