Created
May 4, 2018 10:48
-
-
Save birksy89/a54f22b87bd468ad16b0cb33926e90b7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@{ | |
string imgURL = cont.image + "?w=300&h=300&mode=crop&scale=both"; | |
string placeholderURL = "/Portals/0/Graphics/Rondo-Placeholder-300.png"; | |
} | |
<img src='@(cont.Image ==null ||cont.Image == "" ? placeholderURL : imgURL)'/> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment