Display image from umbraco 7 media picker in web page


Here is how to show an image from an umbraco 7 media picker, and show it on the web page

<img src=”@Umbraco.Media(CurrentPage.myImage).Url” alt=”@CurrentPage.title” />

About johnnblade aka johnnyblade Thugnology

C# Developer 9Ja Thugnology
This entry was posted in Umbraco and tagged , , , , . Bookmark the permalink.

3 Responses to Display image from umbraco 7 media picker in web page

  1. you are the best! I have been all day searching for this, saw many solutions in stackoverflow and blogs but none of them worked but your.s thanks a lot!

  2. emiliolcc says:

    Thank you! Spent almost an hour trying by myself your answer is the simplest!

    EMILIO!

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s