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?
Hi Lee,
Please try following:-
@{ var image = Model.Value<IPublishedContent>("carouselImage1"); <img src="@image.Url" /> }
Hope this solves your issue.
Cheers,
Shaishav
Excellent, Thank you.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Render Image from Media
I am trying to render an image that is in the Media Library. However using
Does not work. How do I get the Url of the image?
Hi Lee,
Please try following:-
Hope this solves your issue.
Cheers,
Shaishav
Excellent, Thank you.
is working on a reply...