Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Aung Zin Phyo 17 posts 87 karma points
    Jan 08, 2020 @ 11:44
    Aung Zin Phyo
    0

    Can't Use .Value in Surface Controller

    How to use Umbraco Helper Method. I can't use .Value.

    var content = Umbraco.Content(1119);
    
    if (content!=null){
    
             string aa = content.Value<string>("CarRefName");
             string bb = content.Value<string>("VehecleNo");
             var image = content.Value<IPublishedContent>("ChooseFeatureImage");
             var imageUrl = image!=null ? image.Url : "";
        }
    
Please Sign in or register to post replies

Write your reply to:

Draft