-
-
Save RyanABailey/0f38a43fd52439165da9 to your computer and use it in GitHub Desktop.
SharePoint 2013 access image URL for custom image field on a page
This file contains hidden or 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
| var image = (ImageFieldValue)SPContext.Current.File.Item["ImageFieldName"]; | |
| if (image != null) | |
| { | |
| string imageUrl = image.ImageUrl; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment